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

Extended class for onnx_chainer export #246

Open
yonglizhong opened this issue Oct 30, 2019 · 3 comments
Open

Extended class for onnx_chainer export #246

yonglizhong opened this issue Oct 30, 2019 · 3 comments

Comments

@yonglizhong
Copy link

Hi all. I've recently downloaded a Light-Head RCNN model and used it for my study project. I'm now interested in exporting as an Onnx model. Was wondering if it's feasible since the model object waits for a chainer.Chain object. My model is a Class extension of a chainer.Chain class and within it consists of also a few more chainer.Chain objects.
I will attempt with it soon but would just like to ask around if anyone had the experience of just exporting the full model. Thanks

@disktnk
Copy link
Member

disktnk commented Oct 31, 2019

if anyone had the experience of just exporting the full model

sorry, I haven't tried such nested model.

export requires all computational graph are connected from input to output via FunctionNode. If sub-chainer.Chain is disconnectted from main-chainer.Chain graph, it will be failed. IOW, it possible enable to export the target model if all function node are connected as one computational graph.

ref: #128

@yonglizhong
Copy link
Author

I have used Chainer.Function instead of FunctionNode. Was wondering if that will be a problem?

@disktnk
Copy link
Member

disktnk commented Nov 5, 2019

Almost chainer.functionss wrap chainer.FunctionNode. Users don't have to care FunctionNode is used or not in many cases. But some chainer.functions such as sign, don't break down to FunctionNode, means ONNX-Chainer cannot export model using sign.

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

No branches or pull requests

2 participants