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 12
12
from executorch .backends .arm ._passes .arm_pass_utils import get_first_fake_tensor
13
13
14
14
from executorch .exir .pass_base import ExportPass , PassResult
15
- from torch .ao .quantization .fx .utils import get_new_attr_name_with_prefix
16
15
from torch .fx import GraphModule , Node
16
+ from torchao .quantization .pt2e .utils import get_new_attr_name_with_prefix
17
17
18
18
19
19
class ScalarsToAttributePass (ExportPass ):
Original file line number Diff line number Diff line change 14
14
from executorch .exir .pass_base import ExportPass , PassResult
15
15
from executorch .exir .passes import dead_code_elimination_pass
16
16
from torch import fx
17
- from torch .ao .quantization .fx .utils import get_new_attr_name_with_prefix
18
17
from torch .ops import aten as aten
18
+ from torchao .quantization .pt2e .utils import get_new_attr_name_with_prefix
19
19
20
20
21
21
@dataclass (frozen = True )
Original file line number Diff line number Diff line change 15
15
from executorch .runtime import Runtime , Verification
16
16
from tabulate import tabulate
17
17
from torch import nn
18
- from torch .ao .quantization import allow_exported_model_train_eval
19
- from torch .ao .quantization .quantizer .composable_quantizer import ComposableQuantizer
20
18
from torch .export import ExportedProgram
21
19
from torchao .quantization import quantize_
20
+ from torchao .quantization .pt2e import allow_exported_model_train_eval
22
21
from torchao .quantization .pt2e .quantize_pt2e import convert_pt2e , prepare_pt2e
22
+
23
+ from torchao .quantization .pt2e .quantizer import ComposableQuantizer
23
24
from torchao .utils import unwrap_tensor_subclass
24
25
25
26
from .recipe import ExportRecipe
You can’t perform that action at this time.
0 commit comments