Skip to content

Conversation

@v0dro
Copy link
Contributor

@v0dro v0dro commented Oct 18, 2019

Fix for #25810

Basically moves the error checking from the device-specific function to the native function.

@v0dro v0dro requested a review from ezyang October 18, 2019 04:44
Copy link
Contributor

@ezyang ezyang left a 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

@v0dro
Copy link
Contributor Author

v0dro commented Oct 18, 2019

Ah my bad. So the correct way would be not delete the lines in the _out variants right? Is the rest okay?

@v0dro v0dro requested a review from ezyang October 19, 2019 03:16
@v0dro
Copy link
Contributor Author

v0dro commented Oct 19, 2019

Fixed.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Oct 21, 2019
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
@facebook-github-bot
Copy link
Contributor

@ezyang merged this pull request in ba59d72.

thiagocrepaldi pushed a commit to thiagocrepaldi/pytorch that referenced this pull request Feb 4, 2020
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants