mindspore.hal.reset_peak_memory_stats ===================================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/hal/mindspore.hal.reset_peak_memory_stats.rst :alt: 查看源文件 .. py:function:: mindspore.hal.reset_peak_memory_stats(device_target=None) 重置内存池中的全部峰值。 .. note:: - 接口即将废弃,请使用接口 :func:`mindspore.runtime.reset_peak_memory_stats` 代替。 .. note:: - 若用户不指定 `device_target` ,将此参数设置为当前已经设置的后端类型。 参数: - **device_target** (str,可选) - 用户指定的后端类型,必须是 ``"CPU"`` , ``"GPU"`` 以及 ``"Ascend"`` 的其中一个。默认值:``None``。