[Functionalization] Remove CreateAsStridedViewInfo#5084
Conversation
|
Thanks a lot. Since |
Well, we can rename it to as_strided_copy but I guess it doesn't matter for now... Will resolve the CI issue later. |
36bdb18 to
7f980ad
Compare
Summary: This PR removes the usage of CreateAsStridedViewInfo in tensor_methods::as_strided. Test Plan: PJRT_DEVICE=CPU python ../test/test_view_ops.py -v -k TestViewOpsXLA.test_as_strided
42aeb4b to
f948036
Compare
| std::vector<int64_t> stride, | ||
| c10::optional<int64_t> storage_offset) { | ||
| // See Note: [Disabling functionalization] | ||
| if (xla::sys_util::GetEnvBool("XLA_DISABLE_FUNCTIONALIZATION", false)) { |
There was a problem hiding this comment.
I'm trying to figure out how you fix the test. Right now, which branch is being run, the if block or the else block?
There was a problem hiding this comment.
By default the flag is off, we have a dedicated run of test_operations.py with the flag on.
|
Thanks everyone for approving the PR. |
Summary:
This PR removes the usage of CreateAsStridedViewInfo in tensor_methods::as_strided.
Test Plan:
PJRT_DEVICE=CPU python ../test/test_view_ops.py -v -k TestViewOpsXLA.test_as_strided