sigmoid_tile

template<bool fast_and_approx = false>
void ckernel::sigmoid_tile_init()

Please refer to documentation for any_init.

template<VectorMode vec_mode = VectorMode::RC, bool fast_and_approx = false, bool is_fp32_dest_acc_en = DST_ACCUM_MODE, int iterations = 8>
void ckernel::sigmoid_tile(uint32_t idst)

Performs element-wise computation of sigmoid on each element of a tile in DST register at index tile_index. The DST register buffer must be in acquired state via acquire_dst call. This call is blocking and is only available on the compute engine.

Call sigmoid_tile_init immediately before: another SFPU op’s init in between overwrites the programmable constants (vConstFloatPrgm0..2) this op reads.

Return value: None

Template Parameter Description

vec_mode The faces to compute

fast_and_approx Enable approximate mode

is_fp32_dest_acc_en Whether DST holds 32-bit data

iterations Number of iterations over 32-SFPU lanes to run (8 = whole face)

Argument Description

idst The index of the tile in DST register buffer to perform the computation on