mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-15 21:00:47 +00:00
Summary: Tensor.is_alias_of relies on Storage to perform. However, LTCTensorImpl was not implemented with that in mind. This commit adds a fake storage to LazyTensor as a marker to mark LazyTensors that point to the same storage. The reason why it's not done at LTCTensorImpl is that LazyTensor maintains the view ops/alias logic in LazyTensor class instead of relying on TensorImpl to do the check. Test Plan: ./build/bin/test_lazy --gtest_filter=LazyOpsTest.IsAliasOf Pull Request resolved: https://github.com/pytorch/pytorch/pull/75246 Approved by: https://github.com/bdhirsh |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| test_backend_device.cpp | ||
| test_cache.cpp | ||
| test_ir.cpp | ||
| test_ir_util.cpp | ||
| test_lazy_ops.cpp | ||
| test_lazy_ops_util.cpp | ||
| test_lazy_ops_util.h | ||
| test_misc.cpp | ||
| test_permutation_util.cpp | ||
| test_shape.cpp | ||
| test_symbolic_shape.cpp | ||
| test_tensor_impl.cpp | ||
| test_util.cpp | ||