Skip to content

Commit a5c5f28

Browse files
authored
add copy_from (#7639)
1 parent b9c8dd7 commit a5c5f28

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

docs/api/paddle/cuda/reset_peak_memory_stats_cn.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ reset_peak_memory_stats
1616

1717
代码示例
1818
::::::::::::
19-
.. code-block:: python
20-
>>> import paddle
21-
>>> paddle.cuda.reset_peak_memory_stats(0)
19+
COPY-FROM: paddle.cuda.reset_peak_memory_stats

docs/api/paddle/device/reset_peak_memory_stats_cn.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ reset_peak_memory_stats
1313

1414
代码示例
1515
::::::::::::
16-
.. code-block:: python
17-
>>> import paddle
18-
>>> paddle.device.reset_peak_memory_stats(0)
16+
COPY-FROM: paddle.device.reset_peak_memory_stats

0 commit comments

Comments
 (0)