pytorch
b1aa45a8 - Fix `_make_wrapper_subclass`'s storage_offset handling (#68268)

Commit
2 years ago
Fix `_make_wrapper_subclass`'s storage_offset handling (#68268) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/68268 Previously, `_make_wrapper_subclass` ignored the storage offset it was passed. This PR fixes that by updating TensorMaker::computeStorageSize() and TensorMaker::make_tensor() to take into account storage_offset. Test Plan: - added test Reviewed By: albanD, bdhirsh Differential Revision: D32396330 Pulled By: zou3519 fbshipit-source-id: 2c85bc4066044fe6cb5ab0fc192de6c9069855fd
Author
Parents
Loading