dequant_tile

void ckernel::dequant_tile_init(const uint32_t zero_point)

Initialize the sfpu with the zero point argument of the de-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 de-quantization Op

uint32_t

Any number

Yes

void ckernel::dequant_tile(uint32_t idst0, uint32_t idst1)

Performs an elementwise per-tensor affine de-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