@@ -233,13 +233,24 @@ class MobileNet_V2_Weights(WeightsEnum):
233233def mobilenet_v2 (
234234 * , weights : Optional [MobileNet_V2_Weights ] = None , progress : bool = True , ** kwargs : Any
235235) -> MobileNetV2 :
236- """
237- Constructs a MobileNetV2 architecture from
238- `"MobileNetV2: Inverted Residuals and Linear Bottlenecks" <https://arxiv.org/abs/1801.04381>`_.
236+ """MobileNetV2 architecture from the `MobileNetV2: Inverted Residuals and Linear
237+ Bottlenecks <https://arxiv.org/abs/1801.04381>`_ paper.
239238
240239 Args:
241- weights (MobileNet_V2_Weights, optional): The pretrained weights for the model
242- progress (bool): If True, displays a progress bar of the download to stderr
240+ weights (:class:`~torchvision.models.MobileNet_V2_Weights`, optional): The
241+ pretrained weights to use. See
242+ :class:`~torchvision.models.MobileNet_V2_Weights` below for
243+ more details, and possible values. By default, no pre-trained
244+ weights are used.
245+ progress (bool, optional): If True, displays a progress bar of the
246+ download to stderr. Default is True.
247+ **kwargs: parameters passed to the ``torchvision.models.mobilenetv2.MobileNetV2``
248+ base class. Please refer to the `source code
249+ <https://github.com/pytorch/vision/blob/main/torchvision/models/mobilenetv2.py>`_
250+ for more details about this class.
251+
252+ .. autoclass:: torchvision.models.MobileNet_V2_Weights
253+ :members:
243254 """
244255 weights = MobileNet_V2_Weights .verify (weights )
245256
0 commit comments