Skip to content

Commit 1cd89a6

Browse files
authored
[Update] saved_tensors_hooks example (#6700)
1 parent d90636e commit 1cd89a6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/api/paddle/autograd/saved_tensors_hooks_cn.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ saved_tensors_hooks 用于动态图,注册一对 pack / unpack hook,用于
1818

1919
2020

21-
代码示例
21+
代码示例 1
2222
::::::::::::
2323

24-
COPY-FROM: paddle.autograd.saved_tensors_hooks
24+
COPY-FROM: paddle.autograd.saved_tensors_hooks:code-example1
25+
26+
代码示例 2
27+
::::::::::::
28+
29+
COPY-FROM: paddle.autograd.saved_tensors_hooks:code-example2

0 commit comments

Comments
 (0)