@@ -73,13 +73,27 @@ class AlexNet_Weights(WeightsEnum):
7373@handle_legacy_interface (weights = ("pretrained" , AlexNet_Weights .IMAGENET1K_V1 ))
7474def alexnet (* , weights : Optional [AlexNet_Weights ] = None , progress : bool = True , ** kwargs : Any ) -> AlexNet :
7575 r"""AlexNet model architecture from the
76- `"One weird trick..." <https://arxiv.org/abs/1404.5997>`_ paper.
77- The required minimum input size of the model is 63x63.
78-
79- Args:
80- weights (AlexNet_Weights, optional): The pretrained weights for the model
81- progress (bool): If True, displays a progress bar of the download to stderr
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:
8295 """
96+
8397 weights = AlexNet_Weights .verify (weights )
8498
8599 if weights is not None :
0 commit comments