File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1212from executorch .backends .arm ._passes .arm_pass_utils import get_first_fake_tensor
1313
1414from executorch .exir .pass_base import ExportPass , PassResult
15- from torch .ao .quantization .fx .utils import get_new_attr_name_with_prefix
1615from torch .fx import GraphModule , Node
16+ from torchao .quantization .pt2e .utils import get_new_attr_name_with_prefix
1717
1818
1919class ScalarsToAttributePass (ExportPass ):
Original file line number Diff line number Diff line change 1414from executorch .exir .pass_base import ExportPass , PassResult
1515from executorch .exir .passes import dead_code_elimination_pass
1616from torch import fx
17- from torch .ao .quantization .fx .utils import get_new_attr_name_with_prefix
1817from torch .ops import aten as aten
18+ from torchao .quantization .pt2e .utils import get_new_attr_name_with_prefix
1919
2020
2121@dataclass (frozen = True )
Original file line number Diff line number Diff line change 1515from executorch .runtime import Runtime , Verification
1616from tabulate import tabulate
1717from torch import nn
18- from torch .ao .quantization import allow_exported_model_train_eval
19- from torch .ao .quantization .quantizer .composable_quantizer import ComposableQuantizer
2018from torch .export import ExportedProgram
2119from torchao .quantization import quantize_
20+ from torchao .quantization .pt2e import allow_exported_model_train_eval
2221from torchao .quantization .pt2e .quantize_pt2e import convert_pt2e , prepare_pt2e
22+
23+ from torchao .quantization .pt2e .quantizer import ComposableQuantizer
2324from torchao .utils import unwrap_tensor_subclass
2425
2526from .recipe import ExportRecipe
You can’t perform that action at this time.
0 commit comments