softplus_tile
-
void ckernel::softplus_tile_init()
-
Please refer to documentation for any_init.
-
template<bool is_fp32_dest_acc_en = DST_ACCUM_MODE>
void ckernel::softplus_tile(uint32_t idst, uint32_t beta, uint32_t beta_reciprocal, uint32_t threshold)
-
Performs element-wise computation of softplus (
1/beta * log(1 + exp(beta * x))) on each element of a tile in DST register at index tile_index. Any input value greater than the provided threshold with return itself. 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.Return value: None
Argument Description
tile_index The index of the tile in DST register buffer to perform the computation on
beta Beta used in softplus calculation
beta_reciprocal Reciprocal of beta (1/beta) used in softplus calculation
threshold Threshold used in softplus calculation