-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
Fix dtype getter #17668
Fix dtype getter #17668
Conversation
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much cleaner - thank you, Sylvain!
Errors seem all related to the current Hub failure, still, will wait for the site to be back online to relaunch them since this is not urgent :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, very cool! Thanks for working on that @sgugger
* Fix dtype getters * Proper fix for dtype getter * Style and commant * Always use last for consistency * Quality
What does this PR do?
This PR is a better fix for #17656 as I've had time to dive deeper into this issue. The problem does appear when the model is wrapped in a
DataParallel
object, and not just for PyTorch 1.5.