@@ -72,26 +72,26 @@ class AlexNet_Weights(WeightsEnum):
7272
7373@handle_legacy_interface (weights = ("pretrained" , AlexNet_Weights .IMAGENET1K_V1 ))
7474def alexnet (* , weights : Optional [AlexNet_Weights ] = None , progress : bool = True , ** kwargs : Any ) -> AlexNet :
75- r """AlexNet model architecture from the
76- `ImageNet Classification with Deep Convolutional Neural Networks
77- <https://papers.nips.cc/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html>`_ paper.
78- The required minimum input size of the model is 63x63.
79-
80- Args:
81- weights (:class:`~torchvision.models.AlexNet_Weights`, optional): The
82- pretrained weights to use. See
83- :class:`~torchvision.models.AlexNet_Weights` below for
84- more details, and possible values. By default, no pre-trained
85- weights are used.
86- progress (bool, optional): If True, displays a progress bar of the
87- download to stderr. Default is True.
88- **kwargs: parameters passed to the ``torchvision.models.squeezenet.AlexNet``
89- base class. Please refer to the `source code
90- <https://github.com/pytorch/vision/blob/main/torchvision/models/alexnet.py>`_
91- for more details about this class.
92-
93- .. autoclass:: torchvision.models.AlexNet_Weights
94- :members:
75+ """AlexNet model architecture from the `ImageNet Classification with Deep Convolutional Neural Networks
76+ <https://papers.nips.cc/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html>`__ paper.
77+
78+ The required minimum input size of the model is 63x63.
79+
80+ Args:
81+ weights (:class:`~torchvision.models.AlexNet_Weights`, optional): The
82+ pretrained weights to use. See
83+ :class:`~torchvision.models.AlexNet_Weights` below for
84+ more details, and possible values. By default, no pre-trained
85+ weights are used.
86+ progress (bool, optional): If True, displays a progress bar of the
87+ download to stderr. Default is True.
88+ **kwargs: parameters passed to the ``torchvision.models.squeezenet.AlexNet``
89+ base class. Please refer to the `source code
90+ <https://github.com/pytorch/vision/blob/main/torchvision/models/alexnet.py>`_
91+ for more details about this class.
92+
93+ .. autoclass:: torchvision.models.AlexNet_Weights
94+ :members:
9595 """
9696
9797 weights = AlexNet_Weights .verify (weights )
0 commit comments