pytorch/test/cpp/lazy
Jiewen Tan ab0d9b18e9 [LT] Support Tensor.is_alias_of
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
2022-04-14 07:28:03 +00:00
..
CMakeLists.txt Adding integration of SSA into LazyTensor 2022-04-07 19:49:41 +00:00
test_backend_device.cpp Land remaining parts of Torchscript Lazy Tensor backend (#74111) 2022-03-22 23:14:03 +00:00
test_cache.cpp Move shape and operand definitions to base node (#75223) 2022-04-06 01:43:46 +00:00
test_ir.cpp Ansley's rebase of DimensionNode onto master (#75352) 2022-04-08 17:22:56 +00:00
test_ir_util.cpp Move shape and operand definitions to base node (#75223) 2022-04-06 01:43:46 +00:00
test_lazy_ops.cpp [LT] Support Tensor.is_alias_of 2022-04-14 07:28:03 +00:00
test_lazy_ops_util.cpp Fix sign-compare violations in cpp tests 2022-04-04 23:05:31 +00:00
test_lazy_ops_util.h Add lazy tensor unit tests, disabled (#74309) 2022-03-17 15:31:26 +00:00
test_misc.cpp Run lazy tensor codegen in generate_code.py (#73996) 2022-03-17 15:31:26 +00:00
test_permutation_util.cpp
test_shape.cpp
test_symbolic_shape.cpp Adding integration of SSA into LazyTensor 2022-04-07 19:49:41 +00:00
test_tensor_impl.cpp Land remaining parts of Torchscript Lazy Tensor backend (#74111) 2022-03-22 23:14:03 +00:00
test_util.cpp