pytorch
dc0a8a65 - Improve storage assertion of Tensor's enforce_invariants (#70380)

Commit
4 years ago
Improve storage assertion of Tensor's enforce_invariants (#70380) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/70380 A small change in `Tensor`'s `enforce_invariants` that addresses tensor types that don't use the regular storage mechanism. ghstack-source-id: 147328303 Test Plan: Existing unit tests. Reviewed By: zou3519 Differential Revision: D33304602 fbshipit-source-id: c8cc41ed38a3eec147f40fe1029fd059748c87b5 (cherry picked from commit da4e87f20b0ec8bb1003e519ed39ba32de62a89d)
Author
Committer
Parents
Loading