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

有while语句的模型,如何转ONNX? #922

Closed
hitbuyi opened this issue Oct 3, 2022 · 8 comments
Closed

有while语句的模型,如何转ONNX? #922

hitbuyi opened this issue Oct 3, 2022 · 8 comments

Comments

@hitbuyi
Copy link

hitbuyi commented Oct 3, 2022

能否提供一点思路? 通过下面的方法可行?
1) 用PADDLESLIM修改模型
2) 在python语言层级修改模型
3)自定义插件

如果提供一点例子就好了

@jiangjiajun
Copy link
Collaborator

jiangjiajun commented Oct 4, 2022

支持有while的转换

@hitbuyi
Copy link
Author

hitbuyi commented Oct 4, 2022

支持有while的转换

我转SMOKE的时候,就是卡在不支持while这个语句上啊

@jiangjiajun
Copy link
Collaborator

怎么提示

@hitbuyi
Copy link
Author

hitbuyi commented Oct 17, 2022

怎么提示

#907, 按提示,就是模型中含用控制流语句,导致不能导出

@jiangjiajun
Copy link
Collaborator

那个是有if导致,现在还没支持if语句

@hitbuyi
Copy link
Author

hitbuyi commented Oct 18, 2022

那个是有if导致,现在还没支持if语句

if语句,提示的却是while?

@jiangjiajun
Copy link
Collaborator

image

你可以看下是否能去掉代码中的if,也就是上面标红的两个OP, while应该有方式解决

@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