requant_tile
-
void ckernel::requant_tile_init(const uint32_t zero_point)
-
Initialize the sfpu with the zero point argument of the re-quantization Op. To be called once at beginning of a kernel.
Return value: None
Argument
Description
Data type
Valid range
Required
zero_point
The zero point of the re-quantization Op
uint32_t
Any number
Yes
-
void ckernel::requant_tile(uint32_t idst0, uint32_t idst1)
-
Performs an elementwise per-tensor affine re-quantization operation on the first operand using the scaling factor in the second operand. Output overwrites first operand in DST.
Return value: None
Argument
Description
Type
Valid Range
Required
idst0
The index of the tile in DST register buffer to use as first operand
uint32_t
Must be less than the size of the DST register buffer
True
idst1
The index of the tile in DST register buffer to use as second operand
uint32_t
Must be less than the size of the DST register buffer
True