背景:
使用vs2017编写加载mnn模型并推理输入图片的程序,发生如下错误
The 321's input is not ready
Resize error for 321, code=3
Resize error for ConvertTensor3, code=3
Can't run session because not resized
由于一开始在linux下生成的项目可执行文件也报了这个错误输出,其他推理的输出也是正常的;根据https://github.com/alibaba/MNN/issues/107
的回答还以为没什么事,但换到windows下使用同样的代码在vs中执行同样的任务时候
linux下运行可执行文件的输出:
The 321's input is not ready
Resize error for [Convolution], 321, code=3
尝试(无效):
1.查看了大量的使用函数的源代码,找到报错信息输出的函数内参数的变化;
2.另外还是用了逐步debug到函数内部,但这种方式不能追溯到dll中封装好的函数;
3.也同时尝试了不同版本的visual stuido
4.试了不同的mnn模型