You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Reference Quantized Model Representation (WIP, expected to be ready at end of August): we have special representation for selected ops (for example, quantized linear), other ops are represented as (``dq -> float32_op -> q``), and``q/dq`` are decomposed into more primitive operators.
461
-
462
-
You can get this representation by using ``convert_pt2e(..., use_reference_representation=True)``.
446
+
.. code-block:: python
463
447
464
-
.. code-block:: python
465
-
466
-
# Reference Quantized Pattern for quantized linear
* Reference Quantized Model Representation (WIP, expected to be ready at end of August): we have special representation for selected ops (for example, quantized linear), other ops are represented as (``dq -> float32_op -> q``), and ``q/dq`` are decomposed into more primitive operators.
476
460
461
+
You can get this representation by using ``convert_pt2e(..., use_reference_representation=True)``.
477
462
478
-
See `here <https://github.com/pytorch/pytorch/blob/main/torch/ao/quantization/pt2e/representation/rewrite.py>`_ for the most up-to-date reference representations.
463
+
.. code-block:: python
464
+
465
+
# Reference Quantized Pattern for quantized linear
See `here <https://github.com/pytorch/pytorch/blob/main/torch/ao/quantization/pt2e/representation/rewrite.py>`_ for the most up-to-date reference representations.
0 commit comments