pytorch
4fc277c3 - [Quant] Add lowering for pixel_shuffle (#94769)

Commit
1 year ago
[Quant] Add lowering for pixel_shuffle (#94769) Summary: `torch.nn.functional.pixel_shuffle` accepts both float and quantized inputs. However, previously we would unnecessarily dequantize quantized inputs into floats before passing them to the function. This commit fixes this by lowering the pattern [dequant - pixel_shuffle - quant]. Test Plan: python test/test_quantization.py TestQuantizeFxOps.test_pixel_shuffle Reviewers: vkuzo Subscribers: vkuzo, supriyar Pull Request resolved: https://github.com/pytorch/pytorch/pull/94769 Approved by: https://github.com/vkuzo
Author
Committer
Parents
Loading