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

pytorch: how to get pytorch input and output node information #492

Closed
ghost opened this issue May 13, 2020 · 3 comments
Closed

pytorch: how to get pytorch input and output node information #492

ghost opened this issue May 13, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented May 13, 2020

how to get pytorch input and output node information

@lutzroeder
Copy link
Owner

lutzroeder commented May 13, 2020

Can you share a sample file?

@ghost
Copy link
Author

ghost commented May 13, 2020

sample_net.zip
image

@lutzroeder
Copy link
Owner

lutzroeder commented May 13, 2020

This format doesn't store all information about the graph. For older PyTorch formats the graph is more a best guess extracted from what's in the file. Best approach is probably to use the code that produced this file, export to ONNX and use ONNX inference (see #71) to fill in the shapes.

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

1 participant