Skip to content

Commit fdb7469

Browse files
authored
Update MobileNetV1_cn.rst
1 parent f3fd681 commit fdb7469

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

docs/api/paddle/vision/models/MobileNetV1_cn.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ MobileNetV1
55

66
.. py:class:: paddle.vision.models.MobileNetV1(scale=1.0, num_classes=1000, with_pool=True)
77
8+
9+
810
MobileNetV1模型,来自论文 `"MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications" <https://arxiv.org/abs/1704.04861>`_ 。
911

1012
参数
@@ -19,14 +21,16 @@ mobilenetv1模型,Layer的实例。
1921

2022
代码示例
2123
:::::::::
22-
.. code-block:: python
24+
COPY-FROM: paddle.vision.models.MobileNetV1:code-example1
2325

24-
import paddle
25-
from paddle.vision.models import MobileNetV1
26+
方法
27+
::::::::::::
28+
forward(x)
29+
'''''''''
2630

27-
model = MobileNetV1()
31+
定义计算过程。应当被所有子类重写。
2832

29-
x = paddle.rand([1, 3, 224, 224])
30-
out = model(x)
33+
**参数**
3134

32-
print(out.shape)
35+
- ***inputs** (tuple) - 元组参数。
36+
- ****kwargs** (dict) - 字典参数。

0 commit comments

Comments
 (0)