Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions docs/source/models/resnext_quant.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Quantized ResNeXt
=================

.. currentmodule:: torchvision.models.quantization

The quantized ResNext model is based on the `Aggregated Residual Transformations for Deep Neural Networks <https://arxiv.org/abs/1611.05431v2>`__
paper.


Model builders
--------------

The following model builders can be used to instantiate a quantized ResNeXt
model, with or without pre-trained weights. All the model builders internally
rely on the ``torchvision.models.quantization.resnet.QuantizableResNet``
base class. Please refer to the `source code
<https://github.com/pytorch/vision/blob/main/torchvision/models/quantization/resnet.py>`_
for more details about this class.

.. autosummary::
:toctree: generated/
:template: function.rst

resnext101_32x8d
resnext101_64x4d
1 change: 1 addition & 0 deletions docs/source/models_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ pre-trained weights:
models/mobilenetv2_quant
models/mobilenetv3_quant
models/resnet_quant
models/resnext_quant
models/shufflenetv2_quant

|
Expand Down
4 changes: 2 additions & 2 deletions torchvision/models/quantization/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def resnext101_32x8d(
**kwargs: Any,
) -> QuantizableResNet:
"""ResNeXt-101 32x8d model from
`Aggregated Residual Transformation for Deep Neural Networks <https://arxiv.org/abs/1611.05431.pdf>`_
`Aggregated Residual Transformation for Deep Neural Networks <https://arxiv.org/abs/1611.05431>`_

.. note::
Note that ``quantize = True`` returns a quantized model with 8 bit
Expand Down Expand Up @@ -409,7 +409,7 @@ def resnext101_64x4d(
**kwargs: Any,
) -> QuantizableResNet:
"""ResNeXt-101 64x4d model from
`Aggregated Residual Transformation for Deep Neural Networks <https://arxiv.org/abs/1611.05431.pdf>`_
`Aggregated Residual Transformation for Deep Neural Networks <https://arxiv.org/abs/1611.05431>`_

.. note::
Note that ``quantize = True`` returns a quantized model with 8 bit
Expand Down