8000 Add pixel_shuffle to core aten decomps (#119899) · pytorch/pytorch@9201d73 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9201d73

Browse files
angelayipytorchmergebot
authored andcommitted
Add pixel_shuffle to core aten decomps (#119899)
Summary: #118239 added a decomposition for pixel_shuffle, so pixel_shuffle no longer needs to be a Core ATen Op. We have also fixed the internal use case so that it no longer special cases on pixel_shuffle, allowing us to revert the changes in #118921. Test Plan: CI Differential Revision: D53766709 Pull Request resolved: #119899 Approved by: https://github.com/peterbell10, https://github.com/lezcano
1 parent 244b124 commit 9201d73

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

aten/src/ATen/native/native_functions.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4463,7 +4463,6 @@
44634463
MPS: pixel_shuffle_mps
44644464
CompositeExplicitAutogradNonFunctional: math_pixel_shuffle
44654465
autogen: pixel_shuffle.out
4466-
tags: core
44674466

44684467
- func: pixel_unshuffle(Tensor self, int downscale_factor) -> Tensor
44694468
dispatch:

test/expect/HasDecompTest.test_aten_core_operators.expect

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,6 @@ aten::normal.float_float_out
388388
aten::normal.out
389389
aten::normal_
390390
aten::permute
391-
aten::pixel_shuffle
392-
aten::pixel_shuffle.out
393391
aten::polar
394392
aten::polar.out
395393
aten::pow.Scalar

torch/_decomp/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ def core_aten_decompositions() -> Dict[torch._ops.OperatorBase, Callable]:
371371
aten.norm,
372372
aten.ones,
373373
aten.ones_like,
374+
aten.pixel_shuffle,
374375
aten.pixel_unshuffle,
375376
aten._prelu_kernel,
376377
aten._prelu_kernel_backward,

torch/_inductor/decomposition.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
aten.native_batch_norm,
5858
aten.native_group_norm,
5959
aten.native_layer_norm,
60-
aten.pixel_shuffle,
6160
aten._softmax,
6261
aten.sin_,
6362
aten.sqrt_,

0 commit comments

Comments
 (0)
0