Skip to content

Commit 5b8fc4c

Browse files
larryliu0820facebook-github-bot
authored andcommitted
import more quantized decomposed ops into edge dialect (#2454)
Summary: As titled Reviewed By: digantdesai Differential Revision: D54930682
1 parent eb976d2 commit 5b8fc4c

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-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__ = [

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dependencies=[
2121
"sympy",
2222
"tabulate",
2323
"tomli",
24+
"torchao-nightly",
2425
"zstd",
2526
]
2627

0 commit comments

Comments
 (0)