Skip to content

Commit 91d3414

Browse files
mcremon-metafacebook-github-bot
authored andcommitted
Make the quantized path the main compilation path (#7939)
Summary: Pull Request resolved: #7939 This diff propagates the changes to the testing APIs to the regular (e.g. used in Bento or standalone) APIs. It introduces `quantize_and_export_to_executorch`, and makes `export_to_executorch` call it. Reviewed By: zonglinpeng Differential Revision: D67646596
1 parent a5f9210 commit 91d3414

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

backends/cadence/aot/compiler.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ def quantize_pt2(
142142
Prepare, convert and fuse the model using the given quantizer.
143143
Returns a GraphModule with the quantized model.
144144
"""
145-
# Make the model inference mode by calling model.eval()
146-
model.eval()
147145

148146
# Instantiate the quantizer to CadenceQuantizer if not supplied
149147
if not quantizer:

0 commit comments

Comments
 (0)