torch/distributed: move quantization ops to libtorch instead of libtorch_python (#77444)
Summary: This moves the distributed/c10d/quantization ops to libtorch instead of libtorch_python. Since they don't depend on Python this avoids the duplicate registration error from TORCH_LIBRARY when used in torch::deploy.
Test Plan:
Build
https://www.internalfb.com/intern/testinfra/testconsole/testrun/8162774414164820/
Differential Revision: D36384244
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77444
Approved by: https://github.com/wanchaol, https://github.com/malfet