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

Function infer

Function Documentation

int infer(nn_ctx_t *ctx, buffer_t *output, buffer_t *input)

对已经量化后的buffer进行推理

参数:
  • ctx -- [IN] 网络推理上下文

  • output -- [OUT] 存放结果

  • input -- [IN] 已量化后的buffer

返回:

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