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

将BERT转成ONNX是报错,There's 3 ops are not supported yet。 #333

Closed
liucongg opened this issue Sep 17, 2021 · 3 comments
Closed

Comments

@liucongg
Copy link

详细错误如下:
NotImplementedError:
There's 3 ops are not supported yet
=========== select_input ===========
=========== logical_not ===========
=========== conditional_block ===========

采用paddlenlp的BERTModel模型,只是在模型内部增加了求解loss和if判断,导致导出onnx报错

@liucongg
Copy link
Author

自己分析,是由于if判断造成的,但是为什么if attention_mask is None,不会报错。但是if len(attention_mask.shape) == 2:会报错呢?

@yeliang2258
Copy link
Collaborator

Hello, paddle2onnx does not support control flow now.

@Zheng-Bicheng
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants