-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[EASY] Add AT_CHECK for null storage. #9823
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
Signed-off-by: Edward Z. Yang <[email protected]>
aten/src/TH/THTensor.hpp
Outdated
| // initialized; we never have tensors that don't have any storage. | ||
| // However, for Caffe2, this is not true, because they have permitted | ||
| // tensors to be allocated without specifying what scalar type | ||
| // they should be, only to be filled with GetMutableData is called |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Signed-off-by: Edward Z. Yang <[email protected]>
|
@pytorchbot retest this please |
gchanan
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.
should we guard the setters as well?
|
Seems like a reasonable thing to do. |
Signed-off-by: Edward Z. Yang <[email protected]>
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 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
@ezyang shipit shipit |
Summary: Signed-off-by: Edward Z. Yang <[email protected]> Pull Request resolved: pytorch/pytorch#9823 Differential Revision: D9029433 Pulled By: ezyang fbshipit-source-id: 6101556305593c66f618b20d8c2a084ae2558ea8
Summary: Signed-off-by: Edward Z. Yang <[email protected]> Pull Request resolved: pytorch#9823 Differential Revision: D9029433 Pulled By: ezyang fbshipit-source-id: 6101556305593c66f618b20d8c2a084ae2558ea8
Signed-off-by: Edward Z. Yang [email protected]