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
5 changes: 3 additions & 2 deletions docs/source/models/mnasnet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ Search for Mobile <https://arxiv.org/pdf/1807.11626.pdf>`__ paper.
Model builders
--------------

The following model builders can be used to instanciate an MNASNet model, with or
without pre-trained weights. All the model builders internally rely on the
The following model builders can be used to instanciate an MNASNet model. Currently
only ``mnasnet0_5`` and ``mnasnet1_0`` can be instantiated with pre-trained weights.
All the model builders internally rely on the
``torchvision.models.mnasnet.MNASNet`` base class. Please refer to the `source
code
<https://github.com/pytorch/vision/blob/main/torchvision/models/mnasnet.py>`_ for
Expand Down
12 changes: 4 additions & 8 deletions torchvision/models/mnasnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,8 @@ def mnasnet0_75(*, weights: Optional[MNASNet0_75_Weights] = None, progress: bool
<https://arxiv.org/pdf/1807.11626.pdf>`_ paper.

Args:
weights (:class:`~torchvision.models.MNASNet0_75_Weights`, optional): The
pretrained weights to use. See
:class:`~torchvision.models.MNASNet0_75_Weights` below for
more details, and possible values. By default, no pre-trained
weights (:class:`~torchvision.models.MNASNet0_75_Weights`, optional): Currently
no pre-trained weights are available and by default no pre-trained
weights are used.
progress (bool, optional): If True, displays a progress bar of the
download to stderr. Default is True.
Expand Down Expand Up @@ -358,10 +356,8 @@ def mnasnet1_3(*, weights: Optional[MNASNet1_3_Weights] = None, progress: bool =
<https://arxiv.org/pdf/1807.11626.pdf>`_ paper.

Args:
weights (:class:`~torchvision.models.MNASNet1_3_Weights`, optional): The
pretrained weights to use. See
:class:`~torchvision.models.MNASNet1_3_Weights` below for
more details, and possible values. By default, no pre-trained
weights (:class:`~torchvision.models.MNASNet1_3_Weights`, optional): Currently
no pre-trained weights are available and by default no pre-trained
weights are used.
progress (bool, optional): If True, displays a progress bar of the
download to stderr. Default is True.
Expand Down