Function asym_affine_vector
Defined in File quantize.h
Function Documentation
-
void asym_affine_vector(uint8_t *output, const float *input, const int size, const int stride, const float scale, const int zeropoint, int data_type)
批量数据的仿射量化操作
- 参数:
output -- [OUT] 量化后的数据
input -- [IN] 待量化的数据
size -- [IN] 待量化数据的大小
stride -- [IN] 数据类型所占的字节数
scale -- [IN] 缩放因子
zeropoint -- [IN] 零点
data_type -- [IN] 数据类型