mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/65033 1. Move the file: ``` hg mv caffe2/torch/quantization/fx caffe2/torch/ao/quantization/fx hg mv caffe2/torch/quantization/quantize_fx.py caffe2/torch/ao/quantization/quantize_fx.py ``` 2. Create new files ``` touch caffe2/torch/quantization/quantize_fx.py touch caffe2/torch/quantization/fx/__init__.py ``` 3. import things in the new files 4. add tests to test/quantization/ao_migration/test_quantization_fx.py this is because we have some fx import in quantize_fx and fx/*.py Test Plan: buck test mode/dev //caffe2/test:quantization Reviewed By: vkuzo, z-a-f Differential Revision: D30949749 fbshipit-source-id: 9e5d4d039c8a0a0820bc9040e224f0d2c26886d3
31 lines
771 B
Python
31 lines
771 B
Python
# flake8: noqa: F401
|
|
r"""
|
|
This file is in the process of migration to `torch/ao/quantization`, and
|
|
is kept here for compatibility while the migration process is ongoing.
|
|
If you are adding a new entry/functionality, please, add it to the
|
|
`torch/ao/quantization/quantize_fx.py`, while adding an import statement
|
|
here.
|
|
"""
|
|
|
|
from torch.ao.quantization.quantize_fx import (
|
|
_check_is_graph_module,
|
|
_swap_ff_with_fxff,
|
|
_fuse_fx,
|
|
Scope,
|
|
ScopeContextManager,
|
|
QuantizationTracer,
|
|
_prepare_fx,
|
|
_prepare_standalone_module_fx,
|
|
fuse_fx,
|
|
prepare_fx,
|
|
prepare_qat_fx,
|
|
_convert_fx,
|
|
convert_fx,
|
|
_convert_standalone_module_fx,
|
|
)
|
|
|
|
from torch.ao.quantization.fx.graph_module import (
|
|
ObservedGraphModule,
|
|
QuantizedGraphModule
|
|
)
|