Skip to content

Commit 5cc2ef9

Browse files
Xia-WeiwenCopilot
andauthored
[PT2E][Docs] Calibration is a must for both static and dynamic quantization (#4307)
* [PT2E] Run weight observer eagerly for dynamic quant * Revert "[PT2E] Run weight observer eagerly for dynamic quant" This reverts commit f373bd1. * Update docs * Update index.rst --------- Co-authored-by: Copilot <copilot@github.com>
1 parent 6529fca commit 5cc2ef9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/source/pt2e_quantization/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ API Example::
5252
m = prepare_pt2e(m, quantizer)
5353

5454
# run calibration
55+
# must run calibration for both static and dynamic quantization
5556
# calibrate(m, sample_inference_data)
57+
5658
m = convert_pt2e(m)
5759

5860
# Step 3. lowering

0 commit comments

Comments
 (0)