Skip to content

Commit

Permalink
update en docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Oct 20, 2021
1 parent 905eb45 commit b5c1623
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/paddle/vision/models/inceptionv3.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,11 @@ class InceptionV3(nn.Layer):
from paddle.vision.models import InceptionV3
inception_v3 = InceptionV3()
x = paddle.rand([1, 3, 299, 299])
out = inception_v3(x)
print(out.shape)
"""

def __init__(self, num_classes=1000, with_pool=True):
Expand Down Expand Up @@ -528,13 +533,19 @@ def inception_v3(pretrained=False, **kwargs):
Examples:
.. code-block:: python
import paddle
from paddle.vision.models import inception_v3
# build model
model = inception_v3()
# build model and load imagenet pretrained weight
# model = inception_v3(pretrained=True)
x = paddle.rand([1, 3, 299, 299])
out = model(x)
print(out.shape)
"""
model = InceptionV3(**kwargs)
arch = "inception_v3"
Expand Down

1 comment on commit b5c1623

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.