mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Summary: (Had to recreate this diff so it wasn't dependent on the stack) Pull Request resolved: https://github.com/pytorch/pytorch/pull/64982 migration of qconfig.py and observer.py to torch/ao/quantization using new test format ghstack-source-id: 138215256 Test Plan: buck test mode/opt //caffe2/test:quantization https://www.internalfb.com/intern/testinfra/testconsole/testrun/8444249354294701/ buck test mode/dev //caffe2/test:quantization -- TestAOMigrationQuantization https://www.internalfb.com/intern/testinfra/testrun/3940649742829796 Reviewed By: z-a-f Differential Revision: D30982534 fbshipit-source-id: 48d08969b1984311ceb036eac0877c811cd6add9
31 lines
907 B
Python
31 lines
907 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/qconfig.py`, while adding an import statement
|
|
here.
|
|
"""
|
|
from torch.ao.quantization.qconfig import (
|
|
QConfig,
|
|
default_qconfig,
|
|
default_debug_qconfig,
|
|
default_per_channel_qconfig,
|
|
QConfigDynamic,
|
|
default_dynamic_qconfig,
|
|
float16_dynamic_qconfig,
|
|
float16_static_qconfig,
|
|
per_channel_dynamic_qconfig,
|
|
float_qparams_weight_only_qconfig,
|
|
default_qat_qconfig,
|
|
default_weight_only_qconfig,
|
|
default_activation_only_qconfig,
|
|
default_qat_qconfig_v2,
|
|
get_default_qconfig,
|
|
get_default_qat_qconfig,
|
|
assert_valid_qconfig,
|
|
QConfigAny,
|
|
add_module_to_qconfig_obs_ctr,
|
|
qconfig_equals
|
|
)
|