.. _torch_tensorrt_ptq_py:

torch_tensorrt.ts.ptq
======================

These components are legacy quantization utilities designed to work with the TorchScript Frontend. They have been replaced by the `TensorRT Model Optimizer <https://nvidia.github.io/TensorRT-Model-Optimizer/>`_ toolkit
which can be used with the dynamo frontend:

.. currentmodule:: torch_tensorrt.ts.ptq

.. automodule:: torch_tensorrt.ts.ptq

Classes
---------

.. autoclass:: DataLoaderCalibrator
   :members:

.. autoclass:: CacheCalibrator
   :members:

Enums
-------

.. autoclass:: CalibrationAlgo
   :members:
   :undoc-members:
