quant_tile

void ckernel::quant_tile_init(const uint32_t zero_point)

Initialize the sfpu with the zero point argument of the quantization Op. To be called once at beginning of a kernel.

Return value: None

Argument Description

zero_point The zero point of the quantization Op

void ckernel::quant_tile(uint32_t idst0, uint32_t idst1, uint32_t odst)

Performs an elementwise per-tensor affine quantization operation on the first operand using the scaling factor in the second operand. Output overwrites odst in DST.

Return value: None

Argument Description

idst0 The index of the tile in DST register buffer to use as first operand

idst1 The index of the tile in DST register buffer to use as second operand

odst The index of the tile in DST register buffer to use as output