Make storage access error NotImplementedError#53972
Make storage access error NotImplementedError#53972ezyang wants to merge 6 commits intogh/ezyang/944/basefrom
Conversation
Signed-off-by: Edward Z. Yang <ezyang@fb.com> [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit ec277ac (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
Signed-off-by: Edward Z. Yang <ezyang@fb.com> Differential Revision: [D27036573](https://our.internmc.facebook.com/intern/diff/D27036573) [ghstack-poisoned]
Signed-off-by: Edward Z. Yang <ezyang@fb.com> Differential Revision: [D27036573](https://our.internmc.facebook.com/intern/diff/D27036573) [ghstack-poisoned]
Signed-off-by: Edward Z. Yang <ezyang@fb.com> Differential Revision: [D27036573](https://our.internmc.facebook.com/intern/diff/D27036573) [ghstack-poisoned]
Signed-off-by: Edward Z. Yang <ezyang@fb.com> Differential Revision: [D27036573](https://our.internmc.facebook.com/intern/diff/D27036573) [ghstack-poisoned]
Signed-off-by: Edward Z. Yang <ezyang@fb.com> Differential Revision: [D27036573](https://our.internmc.facebook.com/intern/diff/D27036573) [ghstack-poisoned]
|
|
||
| void TensorImpl::throw_storage_access_error() const { | ||
| TORCH_CHECK(false, "Cannot access storage of ", tensorimpl_type_name()); | ||
| TORCH_CHECK_NOT_IMPLEMENTED(false, "Cannot access storage of ", tensorimpl_type_name()); |
There was a problem hiding this comment.
Well this one is not strictly a not implemented error? Maybe more of a TypeError?
But if that makes the whole Meta testing simpler, I understand :D
There was a problem hiding this comment.
Yeah, this PR is kind of wrong, but it is "easier"; because I then need to go fix the test suite to stop assuming that there is a storage(). If you like I can remove this from the stack and maintain this in my slush patch until I get far enough that I don't need it anymore.
There was a problem hiding this comment.
Ok I think it is ok if it makes things easier.
Summary: Pull Request resolved: pytorch#53972 Signed-off-by: Edward Z. Yang <ezyang@fb.com> Test Plan: Imported from OSS Reviewed By: mruberry Differential Revision: D27036573 Pulled By: ezyang fbshipit-source-id: 5cc7d9e124bd27ca4041feb56b5007d9408d622a
Stack from ghstack:
Signed-off-by: Edward Z. Yang ezyang@fb.com
Differential Revision: D27036573