weixin_39901412
weixin_39901412
2020-12-08 18:31

Permute param got wrong size

/opt/TNN/tools/convert2tnn# python3 ./converter.py onnx2tnn best-sim.onnx -o . -v v1.0 -align

---------- convert model, please wait a moment ----------

Converter ONNX to TNN Model

Converter ONNX to TNN model succeed!

---------- align model (ONNX vs TNN),please wait a moment ----------

Check onnx input shape and tnn input shape align!

E/tnn: virtual tnn::Status tnn::PermuteLayer::InferOutputShape() [File /opt/TNN/source/tnn/layer/permute_layer.cc][Line 45] Permute param got wrong size. E/tnn: virtual tnn::Status tnn::DefaultNetwork::InitLayers(tnn::NetStructure, tnn::NetResource) [File /opt/TNN/source/tnn/core/default_network.cc][Line 234] Error Init layer Transpose_219 (err: 4096 or 0x1000) E/tnn: tnn::Status tnn::ModelChecker::Init(tnn::NetworkConfig&, tnn::ModelConfig&, tnn::InputShapesMap) [File /opt/TNN/tools/model_check/model_checker.cc][Line 64] create cpu instance falied: code: 0x1000 msg: Permute param got wrong size

---------- Unfortunately ---------- The onnx model not aligned with tnn model

该提问来源于开源项目:Tencent/TNN

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答

为你推荐

换一换