-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
利用MNNConvert工具转换ONNX模型报Tensor.hpp:247 247,return mBuffer.dim[0].extent; #488
Comments
Program received signal SIGSEGV, Segmentation fault. |
inputParam->dformat = MNN::MNN_DATA_FORMAT_NCHW;更改为inputParam->dformat = MNN::MNN_DATA_FORMAT_NC4HW4;即可解决问题 |
利用MNNConvert工具转换ONNX模型,自己已经实现Tanh,ReduceMean,ReduceMax,L2_Norm等自定义算子, 在onnx2MNNNet步能够成功,但是在writeFb步骤中报Tensor.hpp,return mBuffer.dim[0].extent;
通过该出错误定位到生成onnx中源码中有torch.cat([avg_out, max_out], dim=1)操作;在转onnx源码中有多次torch.cat操作,若不添加该操作或者只使用一次能够成功,否则不能成功。
The text was updated successfully, but these errors were encountered: