[Quant][devs] Separated implementations for quantized & non-quantized tensors for the squeeze function (#71639)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71639
This PR is part of a series of PRs addressing https://github.com/pytorch/pytorch/issues/54150,
related to using dispatcher for calls to quantized backends as opposed to if/else conditionals.
This particular PR separates the calls to quantized & non-quantized backends for squeeze
using a dispatcher.
Test Plan:
Additional testing was not implemented to test this change because test cases in the existing test case already make use of the squeeze function for various backends.
initial
Additional testing was not implemented to test this change because test cases in the existing test case already make use of the squeeze function for various backends.
Differential Revision:
D33798546
D33798546
Reviewed By: jerryzh168
Pulled By: dzdang
fbshipit-source-id: 549cd7b16afb2e93ff453c9b256bab6ce73d57ce
(cherry picked from commit 193591c072e1241445dc1b67bffd925af52e330f)