Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion backends/cadence/aot/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ def quantize_pt2(
Prepare, convert and fuse the model using the given quantizer.
Returns a GraphModule with the quantized model.
"""
# Quantizer
# Make the model inference mode by calling model.eval()
model.eval()

# Instantiate the quantizer to CadenceQuantizer if not supplied
if not quantizer:
quantizer = CadenceQuantizer()

Expand Down
Loading