alexnet¶
- torchvision.models.alexnet(*, weights: Optional[AlexNet_Weights] = None, progress: bool = True, **kwargs: Any) AlexNet[source]¶
AlexNet model architecture from One weird trick for parallelizing convolutional neural networks.
Note
AlexNet was originally introduced in the ImageNet Classification with Deep Convolutional Neural Networks paper. Our implementation is based instead on the “One weird trick” paper above.
- Parameters:
weights (
AlexNet_Weights, optional) – The pretrained weights to use. SeeAlexNet_Weightsbelow for more details, and possible values. 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.
**kwargs – parameters passed to the
torchvision.models.squeezenet.AlexNetbase class. Please refer to the source code for more details about this class.