You're reading the documentation for a development version.
For the latest stable release version, please have a look at master.

Function normalize_quantize

Function Documentation

int normalize_quantize(buffer_t *output, buffer_t *input, normalization_params_t *norm_params, pnna_buffer_create_params_t *quant_params, uint32_t counts)

归一化和量化接口,包含多输入输出,将输入数据归一化后量化

参数:
  • output -- [OUT] 量化后的输出 buffer_t 数组

  • input -- [IN] 原始输入 buffer_t 数组

  • norm_params -- [IN] 归一化参数数组

  • quant_params -- [IN] 量化参数数组

  • counts -- [IN] 输入/输出 buffer_t 数组的数量

返回:

int 处理后的状态码,0表示成功,其他表示失败