File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 11
11
12
12
from torch .fx .node import map_arg
13
13
from torch .fx .passes .infra .pass_base import PassBase , PassResult
14
+ from torchao .quantization .pt2e .quantizer import is_valid_annotation
14
15
15
- from torchao .quantization .pt2e .utils import (
16
- _filter_sym_size_users ,
17
- _is_valid_annotation , # @nocommit not found
18
- )
19
-
16
+ from torchao .quantization .pt2e .utils import _filter_sym_size_users
20
17
21
18
logger = logging .getLogger (__name__ )
22
19
logger .setLevel (logging .WARNING )
@@ -129,7 +126,7 @@ def _maybe_duplicate_dynamic_quantize_chain(
129
126
dq_node_users = list (dq_node .users .copy ())
130
127
for user in dq_node_users :
131
128
annotation = user .meta .get ("quantization_annotation" , None )
132
- if not _is_valid_annotation (annotation ):
129
+ if not is_valid_annotation (annotation ):
133
130
return
134
131
with gm .graph .inserting_after (dq_node ):
135
132
new_node = gm .graph .node_copy (dq_node )
You can’t perform that action at this time.
0 commit comments