alexnet¶
- paddle.vision.models. alexnet ( pretrained=False, **kwargs ) [source]
-
AlexNet model from “ImageNet Classification with Deep Convolutional Neural Networks”.
- Parameters
-
pretrained (bool, optional) – Whether to load pre-trained weights. If True, returns a model pre-trained on ImageNet. Default: False.
**kwargs (optional) – Additional keyword arguments. For details, please refer to AlexNet.
- Returns
-
Layer. An instance of AlexNet model.
Examples
import paddle from paddle.vision.models import alexnet # build model model = alexnet() # build model and load imagenet pretrained weight # model = alexnet(pretrained=True) x = paddle.rand([1, 3, 224, 224]) out = model(x) print(out.shape) # [1, 1000]