Toybrick

标题: 报错 E RKNNAPI: rknn_input_set, inputs[0].buf wrong, buf = 0x38ee52a0, [打印本页]

作者: kkkaaa    时间: 2020-5-9 17:08
标题: 报错 E RKNNAPI: rknn_input_set, inputs[0].buf wrong, buf = 0x38ee52a0,
请问这个错误是怎么回事?谢谢:

E RKNNAPI: rknn_input_set,  inputs[0].buf wrong, buf = 0x38ee52a0, size = 16384 (min_size = 65536)!
E Catch exception when setting inputs.
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 1109, in rknn.api.rknn_base.RKNNBase.inference
E   File "rknn/api/rknn_base.py", line 998, in rknn.api.rknn_base.RKNNBase.set_inputs
E   File "rknn/api/rknn_runtime.py", line 422, in rknn.api.rknn_runtime.RKNNRuntime.set_inputs
E Exception: Set inputs failed. error code: RKNN_ERR_PARAM_INVALID
Traceback (most recent call last):
  File "Regressor_experimanet_rknn_from_onnx_runtime.py", line 51, in <module>
    print('rknn_outputs length: ', len(rknn_outputs))
TypeError: object of type 'NoneType' has no len()


作者: kkkaaa    时间: 2020-5-11 20:15
本质是因为 onnx->rknn 的时候多输入顺序乱了,inference 的时候传入的 ndarray 形状不匹配




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3