ai-content-maker/.venv/Lib/site-packages/torch/quantization/fx/utils.py

21 lines
723 B
Python
Raw Normal View History

2024-05-03 04:18:51 +03:00
# 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
appropriate files under `torch/ao/quantization/fx/`, while adding an import statement
here.
"""
from torch.ao.quantization.fx.utils import (
all_node_args_have_no_tensors,
assert_and_get_unique_device,
create_getattr_from_value,
get_custom_module_class_keys,
get_linear_prepack_op_for_dtype,
get_new_attr_name_with_prefix,
get_non_observable_arg_indexes_and_types,
get_qconv_prepack_op,
graph_module_from_producer_nodes,
maybe_get_next_module,
)