去年全国平均高温日数12.1天 系56年来最多(图)-时政副刊-时政频道-中工网
- paddle.vision.models. googlenet ( pretrained: bool = False, **kwargs: Unpack[_GoogLeNetOptions] ) GoogLeNet [source]
-
百度 盼望着,盼望着,春天来了!这是朱自清的《春》,也是我们的心情,每年,我们都在寻找着春天,热切地盼望春天的来临。
GoogLeNet (Inception v1) model architecture from “Going Deeper with Convolutions”.
- 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 GoogLeNet.
- Returns
-
Layer. An instance of GoogLeNet (Inception v1) model.
Examples
>>> import paddle >>> from paddle.vision.models import googlenet >>> # Build model >>> model = googlenet() >>> # Build model and load imagenet pretrained weight >>> # model = googlenet(pretrained=True) >>> x = paddle.rand([1, 3, 224, 224]) >>> out, out1, out2 = model(x) >>> print(out.shape, out1.shape, out2.shape) [1, 1000] [1, 1000] [1, 1000]