-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Change error message for torch.linspace(). #28274
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
Conversation
ezyang
left a comment
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.
I don't think this is right. the _out variant may be called directly if you say torch.linspace(..., out=...). Tests would demonstrate this
|
Ah my bad. So the correct way would be not delete the lines in the |
|
Fixed. |
facebook-github-bot
left a comment
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.
@ezyang is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: Fix for pytorch/pytorch#25810 Basically moves the error checking from the device-specific function to the native function. Pull Request resolved: pytorch/pytorch#28274 Differential Revision: D18032189 Pulled By: ezyang fbshipit-source-id: 9072b5980aa2057274e79bc7241db853bfc36f11
Summary: Fix for pytorch#25810 Basically moves the error checking from the device-specific function to the native function. Pull Request resolved: pytorch#28274 Differential Revision: D18032189 Pulled By: ezyang fbshipit-source-id: 9072b5980aa2057274e79bc7241db853bfc36f11
Fix for #25810
Basically moves the error checking from the device-specific function to the native function.