Skip to content

Commit 24fe9a4

Browse files
larryliu0820facebook-github-bot
authored andcommitted
import more quantized decomposed ops into edge dialect
Summary: As titled Reviewed By: digantdesai Differential Revision: D54930682
1 parent eb976d2 commit 24fe9a4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

exir/passes/TARGETS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ python_library(
127127
"//caffe2:torch",
128128
"//executorch/exir:pass_base",
129129
"//executorch/exir/dialects:lib",
130+
"//pytorch/ao:torchao",
130131
],
131132
)
132133

exir/passes/_quant_patterns_and_replacements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
should_lower_to_edge,
1616
)
1717
from torch import fx
18-
from torch.ao.quantization.fx._decomposed import quantized_decomposed_lib
18+
from torchao.quantization.quant_primitives import quantized_decomposed_lib
1919

2020

2121
__all__ = [

0 commit comments

Comments
 (0)