rand_tile
-
void ckernel::rand_tile_init(uint32_t seed)
-
Please refer to documentation for any_init.
-
void ckernel::rand_tile(uint32_t idst, uint32_t from, uint32_t scale)
-
Performs element-wise rand on each element of a of a tile in DST register at index tile_index. That is each element is overwritten with a randomly generated float. 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
Type
Valid Range
Required
tile_index
The index of the tile in DST register buffer to perform typecast operation
uint32_t
Must be less than the size of the DST register buffer
True
from
Random range lowerbound(inclusive)
uint
Any number
True
scale
Random scale rand float in range [from, from + scale]
uint
Must be greater than 0
True