-
Notifications
You must be signed in to change notification settings - Fork 598
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
Result of Flexible-input-shape Model is NAN #2166
Comments
Loading an untrusted PyTorch model is a security risk. So I'm unable to reproduce your results. It would be great if you could give us a minimal example (i.e. one which doesn't require loading an external model). Does the output match if you convert with fixed shapes? |
This model is from Hugging Face. I'm not sure which layer causes this bug, so it's difficult for me to construct a minimal example. |
I completely understand. Unfortunately, without a minimal example, it's difficult for me to help you. Since the fixed shape works, the issue is almost certainly related to flexible shape. For debugging purposes, there's a few more things you could try. 1 - Verify that the traced PyTorch model still works for shapes within the range of the flexible shape but different than the shapes it was traced on. 2 - See if the model converts correct with fixed 3 - See if the model converts correct with fixed |
|
🐞Describing the bug
When I using EnumeratedShape or RangeDim to generate a flexible-input-shape model to inference, the result is all nan.
Stack Trace
To Reproduce
System environment (please complete the following information):
The text was updated successfully, but these errors were encountered: