Skip to content

Commit 3904528

Browse files
authored
在paddle.nn.Layer.eval/train中加入返回值 (#7330)
modified: docs/api/paddle/nn/Layer_cn.rst
1 parent 061f179 commit 3904528

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/api/paddle/nn/Layer_cn.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ train()
3232

3333
将此层及其所有子层设置为训练模式。这只会影响某些模块,如 Dropout 和 BatchNorm。
3434

35+
**返回**
36+
Layer (返回网络层), self (返回自身)
37+
3538
**代码示例**
3639

3740
COPY-FROM: paddle.nn.Layer
@@ -42,7 +45,7 @@ eval()
4245
将此层及其所有子层设置为预测模式。这只会影响某些模块,如 Dropout 和 BatchNorm。
4346

4447
**返回**
45-
48+
Layer (返回网络层), self (返回自身)
4649

4750
**代码示例**
4851

0 commit comments

Comments
 (0)