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
TorchScript: Argument names to match runtime #865
Comments
@daodaoawaker can you share a sample file and screenshot to reproduce the issue. |
It looks like the names in pt are arranged numerically from smallest to largest, don't you think there's something wrong with that ?? |
@daodaoawaker which names? Can you share an example or screenshot? |
My files related about this situation all in company,can u wait for me to upload the files after I negotiate with IT colleagues tomorrow,thanks |
Hi, @lutzroeder As shown above, the conv-op in pt model viewed by netron whose name is number 4, but the node's name parsed by torch.jit interface is input2.1 or number 373 which generated by different interface invoked. some of code to parse the pt model is as follows:
|
@daodaoawaker there seem to be multiple options:
Can you help investigate this and submit a fix? |
I think the first approach seems more appropriate, while the second approach is more complex and I don't yet understand the mechanics of TorchScript‘s runtime compilation. |
Hi, there is some questions about node's name which in pt model saved by TorchScript. I use netron to view my pt model exported by torch.jit.save(),but the node's name doesn't match with it's real name resolved by TorchScript interface. It looks like the names in pt are arranged numerically from smallest to largest,but this is clearly not the case when they are parsed from TorchScript's interface.
I wonder how this kind of situation can be solved, thanks a lot !! Looking forward to your reply.
The text was updated successfully, but these errors were encountered: