tanh_tile
-
template<bool fast_and_approx = false>
void ckernel::tanh_tile_init()
-
Please refer to documentation for any_init.
If using fast and approximate implementation of tanh_tile(), then tanh_tile_init() should be also be called with fast_and_approx = true.
-
template<bool fast_and_approx = false>
void ckernel::tanh_tile(uint32_t idst)
-
Performs element-wise computation of tanh 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.
If using fast and approximate mode, then tanh_tile_init() should be also be called with fast_and_approx = true beforehand.
Return value: None
Argument
Description
Type
Valid Range
Required
idst
The index of the tile in DST register buffer to perform the computation on
uint32_t
Must be less than the size of the DST register buffer
True
fast_and_approx
Whether to use fast and approximate mode
bool
True or False
False