Skip to content

Commit d7e88a4

Browse files
mcremon-metafacebook-github-bot
authored andcommitted
Make the quantized path the main compilation path
Summary: 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. Differential Revision: D67646596
1 parent 1bf20e3 commit d7e88a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backends/cadence/aot/compiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def quantize_pt2(
132132
Prepare, convert and fuse the model using the given quantizer.
133133
Returns a GraphModule with the quantized model.
134134
"""
135-
# Make the model inference mode by calling model.eval()
136-
model.eval()
135+
# # Make the model inference mode by calling model.eval()
136+
# model.eval()
137137

138138
# Instantiate the quantizer to CadenceQuantizer if not supplied
139139
if not quantizer:

0 commit comments

Comments
 (0)