提交 b2c491fa 编写于 作者: G gaotingquan 提交者: Tingquan Gao

docs: supplement

上级 6963c258
...@@ -122,6 +122,7 @@ def stop_after(self, stop_layer_name: str) -> bool: ...@@ -122,6 +122,7 @@ def stop_after(self, stop_layer_name: str) -> bool:
`MobileNetV1` 网络为例,参数 `stop_layer_name``"blocks[0].depthwise_conv.conv"`,具体效果可以参考下方代码案例进行尝试。 `MobileNetV1` 网络为例,参数 `stop_layer_name``"blocks[0].depthwise_conv.conv"`,具体效果可以参考下方代码案例进行尝试。
```python ```python
# cd <root-path-to-PaddleClas> or pip install paddleclas to import paddleclas
import paddleclas import paddleclas
net = paddleclas.MobileNetV1() net = paddleclas.MobileNetV1()
...@@ -166,6 +167,8 @@ def update_res( ...@@ -166,6 +167,8 @@ def update_res(
```python ```python
import numpy as np import numpy as np
import paddle import paddle
# cd <root-path-to-PaddleClas> or pip install paddleclas to import paddleclas
import paddleclas import paddleclas
np_input = np.zeros((1, 3, 224, 224)) np_input = np.zeros((1, 3, 224, 224))
...@@ -237,6 +240,8 @@ def upgrade_sublayer(self, ...@@ -237,6 +240,8 @@ def upgrade_sublayer(self,
```python ```python
from paddle import nn from paddle import nn
# cd <root-path-to-PaddleClas> or pip install paddleclas to import paddleclas
import paddleclas import paddleclas
# 该函数必须有两个形参 # 该函数必须有两个形参
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册