Skip to content

Commit

Permalink
Fix unittest failure
Browse files Browse the repository at this point in the history
Signed-off-by: Seokjun An <[email protected]>
  • Loading branch information
quic-seokan committed Jan 23, 2025
1 parent 74831ba commit e223fb4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
from torch.onnx import is_in_onnx_export, symbolic_helper

from aimet_torch.v2.utils import patch_attr
from aimet_torch.quantization.base import QuantizerBase


aimet_opset = onnxscript.values.Opset(domain="aimet", version=1)
Expand Down Expand Up @@ -219,6 +218,8 @@ def export(model: torch.nn.Module, *args, **kwargs):

@contextmanager
def _precompute_encodings(model: torch.nn.Module):
# pylint: disable=import-outside-toplevel
from aimet_torch.quantization.base import QuantizerBase
with ExitStack() as stack:
for q in model.modules():
if isinstance(q, QuantizerBase):
Expand Down

0 comments on commit e223fb4

Please sign in to comment.