@@ -274,13 +274,25 @@ def _mnasnet(alpha: float, weights: Optional[WeightsEnum], progress: bool, **kwa
274274
275275@handle_legacy_interface (weights = ("pretrained" , MNASNet0_5_Weights .IMAGENET1K_V1 ))
276276def mnasnet0_5 (* , weights : Optional [MNASNet0_5_Weights ] = None , progress : bool = True , ** kwargs : Any ) -> MNASNet :
277- r """MNASNet with depth multiplier of 0.5 from
278- `" MnasNet: Platform-Aware Neural Architecture Search for Mobile"
279- <https://arxiv.org/pdf/1807.11626.pdf>`_.
277+ """MNASNet with depth multiplier of 0.5 from
278+ `MnasNet: Platform-Aware Neural Architecture Search for Mobile
279+ <https://arxiv.org/pdf/1807.11626.pdf>`_ paper .
280280
281281 Args:
282- weights (MNASNet0_5_Weights, optional): The pretrained weights for the model
283- progress (bool): If True, displays a progress bar of the download to stderr
282+ weights (:class:`~torchvision.models.MNASNet0_5_Weights`, optional): The
283+ pretrained weights to use. See
284+ :class:`~torchvision.models.MNASNet0_5_Weights` below for
285+ more details, and possible values. By default, no pre-trained
286+ weights are used.
287+ progress (bool, optional): If True, displays a progress bar of the
288+ download to stderr. Default is True.
289+ **kwargs: parameters passed to the ``torchvision.models.mnasnet.MNASNet``
290+ base class. Please refer to the `source code
291+ <https://github.com/pytorch/vision/blob/main/torchvision/models/mnasnet.py>`_
292+ for more details about this class.
293+
294+ .. autoclass:: torchvision.models.MNASNet0_5_Weights
295+ :members:
284296 """
285297 weights = MNASNet0_5_Weights .verify (weights )
286298
@@ -289,13 +301,23 @@ def mnasnet0_5(*, weights: Optional[MNASNet0_5_Weights] = None, progress: bool =
289301
290302@handle_legacy_interface (weights = ("pretrained" , None ))
291303def mnasnet0_75 (* , weights : Optional [MNASNet0_75_Weights ] = None , progress : bool = True , ** kwargs : Any ) -> MNASNet :
292- r """MNASNet with depth multiplier of 0.75 from
293- `" MnasNet: Platform-Aware Neural Architecture Search for Mobile"
294- <https://arxiv.org/pdf/1807.11626.pdf>`_.
304+ """MNASNet with depth multiplier of 0.75 from
305+ `MnasNet: Platform-Aware Neural Architecture Search for Mobile
306+ <https://arxiv.org/pdf/1807.11626.pdf>`_ paper .
295307
296308 Args:
297- weights (MNASNet0_75_Weights, optional): The pretrained weights for the model
298- progress (bool): If True, displays a progress bar of the download to stderr
309+ weights (:class:`~torchvision.models.MNASNet0_75_Weights`, optional): The
310+ pretrained weights to use. See
311+ :class:`~torchvision.models.MNASNet0_75_Weights` below for
312+ more details, and possible values. By default, no pre-trained
313+ weights are used.
314+ progress (bool, optional): If True, displays a progress bar of the
315+ download to stderr. Default is True.
316+ **kwargs: parameters passed to the ``torchvision.models.mnasnet.MNASNet``
317+ base class. Please refer to the `source code
318+ <https://github.com/pytorch/vision/blob/main/torchvision/models/mnasnet.py>`_
319+ for more details about this class.
320+
299321 """
300322 weights = MNASNet0_75_Weights .verify (weights )
301323
@@ -304,13 +326,25 @@ def mnasnet0_75(*, weights: Optional[MNASNet0_75_Weights] = None, progress: bool
304326
305327@handle_legacy_interface (weights = ("pretrained" , MNASNet1_0_Weights .IMAGENET1K_V1 ))
306328def mnasnet1_0 (* , weights : Optional [MNASNet1_0_Weights ] = None , progress : bool = True , ** kwargs : Any ) -> MNASNet :
307- r """MNASNet with depth multiplier of 1.0 from
308- `" MnasNet: Platform-Aware Neural Architecture Search for Mobile"
309- <https://arxiv.org/pdf/1807.11626.pdf>`_.
329+ """MNASNet with depth multiplier of 1.0 from
330+ `MnasNet: Platform-Aware Neural Architecture Search for Mobile
331+ <https://arxiv.org/pdf/1807.11626.pdf>`_ paper .
310332
311333 Args:
312- weights (MNASNet1_0_Weights, optional): The pretrained weights for the model
313- progress (bool): If True, displays a progress bar of the download to stderr
334+ weights (:class:`~torchvision.models.MNASNet1_0_Weights`, optional): The
335+ pretrained weights to use. See
336+ :class:`~torchvision.models.MNASNet1_0_Weights` below for
337+ more details, and possible values. By default, no pre-trained
338+ weights are used.
339+ progress (bool, optional): If True, displays a progress bar of the
340+ download to stderr. Default is True.
341+ **kwargs: parameters passed to the ``torchvision.models.mnasnet.MNASNet``
342+ base class. Please refer to the `source code
343+ <https://github.com/pytorch/vision/blob/main/torchvision/models/mnasnet.py>`_
344+ for more details about this class.
345+
346+ .. autoclass:: torchvision.models.MNASNet1_0_Weights
347+ :members:
314348 """
315349 weights = MNASNet1_0_Weights .verify (weights )
316350
@@ -319,13 +353,23 @@ def mnasnet1_0(*, weights: Optional[MNASNet1_0_Weights] = None, progress: bool =
319353
320354@handle_legacy_interface (weights = ("pretrained" , None ))
321355def mnasnet1_3 (* , weights : Optional [MNASNet1_3_Weights ] = None , progress : bool = True , ** kwargs : Any ) -> MNASNet :
322- r """MNASNet with depth multiplier of 1.3 from
323- `" MnasNet: Platform-Aware Neural Architecture Search for Mobile"
324- <https://arxiv.org/pdf/1807.11626.pdf>`_.
356+ """MNASNet with depth multiplier of 1.3 from
357+ `MnasNet: Platform-Aware Neural Architecture Search for Mobile
358+ <https://arxiv.org/pdf/1807.11626.pdf>`_ paper .
325359
326360 Args:
327- weights (MNASNet1_3_Weights, optional): The pretrained weights for the model
328- progress (bool): If True, displays a progress bar of the download to stderr
361+ weights (:class:`~torchvision.models.MNASNet1_3_Weights`, optional): The
362+ pretrained weights to use. See
363+ :class:`~torchvision.models.MNASNet1_3_Weights` below for
364+ more details, and possible values. By default, no pre-trained
365+ weights are used.
366+ progress (bool, optional): If True, displays a progress bar of the
367+ download to stderr. Default is True.
368+ **kwargs: parameters passed to the ``torchvision.models.mnasnet.MNASNet``
369+ base class. Please refer to the `source code
370+ <https://github.com/pytorch/vision/blob/main/torchvision/models/mnasnet.py>`_
371+ for more details about this class.
372+
329373 """
330374 weights = MNASNet1_3_Weights .verify (weights )
331375
0 commit comments