Skip to content
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

onnx转tnn时报错,CreateLayer failed, type:103 #566

Closed
MugleLei opened this issue Nov 17, 2020 · 0 comments
Closed

onnx转tnn时报错,CreateLayer failed, type:103 #566

MugleLei opened this issue Nov 17, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@MugleLei
Copy link

1. 使用环境(environment)

  • OS: Docker
  • OS Version: 2020/11/17拉取的最新镜像

2. Github版本

  • branch:
  • commit(optional):

3. 详细描述bug 情况 (Describe the bug)
使用docker最新镜像转换pytorch导出的onnx模型,转换成功但是进行align时tnn初始化模型报错

  • issue type: 模型转换失败(converter failed)
  • original model: ONNX
    new_model.zip
    (如果可以的话,请上传原始的模型文件)

4. 日志(Log)

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

Converter ONNX to TNN Model

Converter ONNX to TNN model succeed!

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

Check onnx input shape and tnn input shape align!

E/tnn: virtual tnn::Status tnn::DefaultNetwork::InitLayers(tnn::NetStructure*, tnn::NetResource*) [File /opt/TNN/source/tnn/core/default_network.cc][Line 141] Error: CreateLayer failed, type:103
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: CreateLayer failed

Conversion to  tnn failed :(

5. 截图(Screenshots)
image

gttiankai pushed a commit that referenced this issue Dec 2, 2020
* [CONVERTER][ADD] add new fusion pattern for hard swish

* [CONVERTER][UPD] update fuse hard swish

Co-authored-by: ealinli <ealinli@tencent.com>
@neiltian-tencent neiltian-tencent added the enhancement New feature or request label Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants