Skip to content

Commit

Permalink
[Backport] Remove reshape lowering (#6801) (#6847)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonjoolee95 authored Apr 3, 2024
1 parent fabf977 commit 6e4b2ed
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions codegen/xla_native_functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@ supported:
- narrow_copy
- pixel_shuffle
- pixel_unshuffle
- reshape
- select_backward
- select.int
- slice.Tensor
Expand Down Expand Up @@ -413,8 +412,6 @@ symint:
- narrow_copy
- select_backward
- select.int
# See Note: [functionalization and CompositeExplicitAutograd]
- reshape
# See Note: [Disabling functionalization]
- expand
- view
Expand Down
10 changes: 0 additions & 10 deletions torch_xla/csrc/aten_xla_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3653,16 +3653,6 @@ at::Tensor XLANativeFunctions::pixel_unshuffle(const at::Tensor& self,
pixel_unshuffle)>::call(self, downscale_factor);
}

at::Tensor XLANativeFunctions::reshape_symint(const at::Tensor& self,
c10::SymIntArrayRef shape) {
// See Note: [Disabling functionalization]
if (runtime::sys_util::GetEnvBool("XLA_DISABLE_FUNCTIONALIZATION", false)) {
return at::native::reshape_symint(self, shape);
}
return at::functionalization::functionalize_aten_op_symint<ATEN_OP(
reshape)>::call(self, shape);
}

at::Tensor XLANativeFunctions::select_backward_symint(
const at::Tensor& grad_output, c10::SymIntArrayRef input_sizes, int64_t dim,
c10::SymInt index) {
Expand Down

0 comments on commit 6e4b2ed

Please sign in to comment.