pytorch/test/cpp/lazy
Wonjoo Lee f9d07ae644 Update torch::lazy::BackendDevice to have a new default ordinal (#76264)
Summary:
Fixes https://github.com/pytorch/xla/issues/3490. Updates `torch::lazy::BackendDevice` with changes below:

1. Remove the no-op string constructor.
2. Update default ordinal to `-1`.
3. Add a `is_valid` function to check if `ordinal` is valid/non-default (`ordinal >= 0`).

Pull Request resolved: https://github.com/pytorch/pytorch/pull/76264

Reviewed By: mrshenli

Differential Revision: D35860266

Pulled By: alanwaketan

fbshipit-source-id: 554ebe16a0683d37b00270c4f35163bf690bfe28
(cherry picked from commit b941d10e8545dfecfb34e4d5c24a29a1cc49bc4b)
2022-04-25 23:57:18 +00:00
..
CMakeLists.txt Adding integration of SSA into LazyTensor 2022-04-07 19:49:41 +00:00
test_backend_device.cpp Update torch::lazy::BackendDevice to have a new default ordinal (#76264) 2022-04-25 23:57:18 +00:00
test_cache.cpp Decouple Lazy Node Shape Cache (#75324) 2022-04-21 17:27:05 -07:00
test_ir.cpp Decouple Lazy Node Shape Cache (#75324) 2022-04-21 17:27:05 -07:00
test_ir_util.cpp Decouple Lazy Node Shape Cache (#75324) 2022-04-21 17:27:05 -07: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
test_permutation_util.cpp
test_shape.cpp
test_symbolic_shape.cpp Decouple Lazy Node Shape Cache (#75324) 2022-04-21 17:27:05 -07: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