Skip to content

Commit 5a12c37

Browse files
author
Svetlana Karslioglu
authored
Apply suggestions from code review
Editorial fixes.
1 parent 27e5b97 commit 5a12c37

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

prototype_source/pt2e_quant_ptq_static.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ We'll show how to save and load the quantized model.
526526

527527
.. code-block:: python
528528
529-
# 0. Store reference output for example inputs and check evaluation accuracy
529+
# 0. Store reference output, for example, inputs, and check evaluation accuracy:
530530
example_inputs = (next(iter(data_loader))[0],)
531531
ref = quantized_model(*example_inputs)
532532
top1, top5 = evaluate(quantized_model, criterion, data_loader_test)
@@ -544,7 +544,7 @@ We'll show how to save and load the quantized model.
544544
loaded_quantized_ep = torch.export.load(pt2e_quantized_model_file_path)
545545
loaded_quantized_model = loaded_quantized_ep.module()
546546
547-
# 3. Check results for example inputs and checke evaluation accuracy again
547+
# 3. Check results for example inputs and check evaluation accuracy again:
548548
res = loaded_quantized_model(*example_inputs)
549549
print("diff:", ref - res)
550550
@@ -583,8 +583,8 @@ The model produced at this point is not the final model that runs on the device,
583583
it is a reference quantized model that captures the intended quantized computation
584584
from the user, expressed as ATen operators and some additional quantize/dequantize operators,
585585
to get a model that runs on real devices, we'll need to lower the model.
586-
For example for the models that run on edge devices, we can lower with delegation and executorch runtime
587-
operators..
586+
For example, for the models that run on edge devices, we can lower with delegation and ExecuTorch runtime
587+
operators.
588588

589589
Conclusion
590590
--------------

0 commit comments

Comments
 (0)