From b2c491faa439bd4f29cc59a6f3e34bd97c06147f Mon Sep 17 00:00:00 2001 From: gaotingquan Date: Tue, 11 Jan 2022 03:41:23 +0000 Subject: [PATCH] docs: supplement --- docs/zh_CN/advanced_tutorials/theseus_layer.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/zh_CN/advanced_tutorials/theseus_layer.md b/docs/zh_CN/advanced_tutorials/theseus_layer.md index 11916c86..0c3f1c55 100644 --- a/docs/zh_CN/advanced_tutorials/theseus_layer.md +++ b/docs/zh_CN/advanced_tutorials/theseus_layer.md @@ -122,6 +122,7 @@ def stop_after(self, stop_layer_name: str) -> bool: 以 `MobileNetV1` 网络为例,参数 `stop_layer_name` 为 `"blocks[0].depthwise_conv.conv"`,具体效果可以参考下方代码案例进行尝试。 ```python +# cd or pip install paddleclas to import paddleclas import paddleclas net = paddleclas.MobileNetV1() @@ -166,6 +167,8 @@ def update_res( ```python import numpy as np import paddle + +# cd or pip install paddleclas to import paddleclas import paddleclas np_input = np.zeros((1, 3, 224, 224)) @@ -237,6 +240,8 @@ def upgrade_sublayer(self, ```python from paddle import nn + +# cd or pip install paddleclas to import paddleclas import paddleclas # 该函数必须有两个形参 -- GitLab