Skip to content

Commit 79474b1

Browse files
HDCharlessvekars
andauthored
[ao] adding note about warning to static quant tutorial (#2705)
* adding warning to quantization tutorial Summary: users reported seeing a warning when running a tutorial, add a comment calling this out as expected. --------- Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
1 parent a92ddf4 commit 79474b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

advanced_source/static_quantization_tutorial.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,9 @@ values to floats - and then back to ints - between every operation, resulting in
435435
436436
# Convert to quantized model
437437
torch.ao.quantization.convert(myModel, inplace=True)
438+
# You may see a user warning about needing to calibrate the model. This warning can be safely ignored.
439+
# This warning occurs because not all modules are run in each model runs, so some
440+
# modules may not be calibrated.
438441
print('Post Training Quantization: Convert done')
439442
print('\n Inverted Residual Block: After fusion and quantization, note fused modules: \n\n',myModel.features[1].conv)
440443

0 commit comments

Comments
 (0)