Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions torchao/testing/pt2e/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from torch.testing._internal.inductor_utils import clone_preserve_strides_offset

import torchao
import torchao.quantization.pt2e.quantizer.x86_inductor_quantizer as xiq
from torchao.quantization.pt2e import FROM_NODE_KEY
from torchao.quantization.pt2e._numeric_debugger import _extract_node_source_debug_info
from torchao.quantization.pt2e.graph_utils import bfs_trace_with_node_process
Expand All @@ -33,9 +32,6 @@
prepare_pt2e,
prepare_qat_pt2e,
)
from torchao.quantization.pt2e.quantizer.x86_inductor_quantizer import (
X86InductorQuantizer,
)
from torchao.utils import torch_version_at_least


Expand Down Expand Up @@ -226,6 +222,11 @@ def get_default_x86_quantizer(is_qat, is_dynamic):
"""
Create a default X86InductorQuantizer configured for the given mode (QAT and dynamic quant).
"""
import torchao.quantization.pt2e.quantizer.x86_inductor_quantizer as xiq
from torchao.quantization.pt2e.quantizer.x86_inductor_quantizer import (
X86InductorQuantizer,
)

quantizer = X86InductorQuantizer()
quantizer.set_global(
xiq.get_default_x86_inductor_quantization_config(
Expand Down
Loading