-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
OnnxExporterError using dynamo_export #126618
Comments
Hi @alba-saco , sarif should be a file called "report_dynamo_export.sarif", and it's generated when it's failed. If you have it, you can upload that. Alternatively, above this error message, there should an original error stack right above it. Could you paste that? Also, it will be helpful that a simple repro is provided. |
Hi @titaiwangms, I assume you meant to tag me as I posted the issue initially. Below is the original error stack, apologies for the oversight:
I've just added the repo I was working with if you want to reproduce. The script I was running was Github didn't give me the option to upload the sarif report to the issue (or here in the comment) which is why I pasted its contents. It grays out the file on selecting as it probably doesn't consider it a valid file extension to upload. You can find it in the github repo I just linked though, under the expected name. Thank you. |
Hi @alba-saco, The error stack suggests a dynamo break. dynamo is rapidly changed/improved. Would you mind trying with nightly torch, and see whether it generates the same unsupported error? |
Hi @titaiwangms, I just tried the nightly torch and am still getting the same unsupported error. The stack has some minor differences so pasting again for your reference in case it's useful.
|
Hi @alba-saco, It looks like fraction.Fraction is not supported by dynamo (dynamo is not able to capture FX graph out of this function). Another way that we can test is to feed your model into torch.export.export to see if it works. And if it is, we can then use the generated |
馃悰 Describe the bug
I got an
OnnxExporterError
trying to export a PyTorch model usingdynamo_export
. See below:As requested in the error message, I'm raising an issue and pasting the contents of the SARIF report below (I'm unable to attach it as a file). Please let me know if there is other information I can provide and I would love to stay up to date on efforts to improve this functionality.
Thank you.
Versions
The text was updated successfully, but these errors were encountered: