diff --git a/docs/api/paddle/cuda/reset_peak_memory_stats_cn.rst b/docs/api/paddle/cuda/reset_peak_memory_stats_cn.rst index a40d6b385f2..fa71a24659f 100644 --- a/docs/api/paddle/cuda/reset_peak_memory_stats_cn.rst +++ b/docs/api/paddle/cuda/reset_peak_memory_stats_cn.rst @@ -16,6 +16,4 @@ reset_peak_memory_stats 代码示例 :::::::::::: -.. code-block:: python - >>> import paddle - >>> paddle.cuda.reset_peak_memory_stats(0) +COPY-FROM: paddle.cuda.reset_peak_memory_stats diff --git a/docs/api/paddle/device/reset_peak_memory_stats_cn.rst b/docs/api/paddle/device/reset_peak_memory_stats_cn.rst index ddb89fdde34..3fc41681587 100644 --- a/docs/api/paddle/device/reset_peak_memory_stats_cn.rst +++ b/docs/api/paddle/device/reset_peak_memory_stats_cn.rst @@ -13,6 +13,4 @@ reset_peak_memory_stats 代码示例 :::::::::::: - .. code-block:: python - >>> import paddle - >>> paddle.device.reset_peak_memory_stats(0) +COPY-FROM: paddle.device.reset_peak_memory_stats