未验证 提交 6eca037c 编写于 作者: 郭叶军's avatar 郭叶军 提交者: GitHub

deepspeed/runtime/utils.py: reset_peak_memory_stats when empty cache (#2803)

Co-authored-by: NOlatunji Ruwase <olruwase@microsoft.com>
上级 4d27225f
......@@ -765,6 +765,7 @@ def get_ma_status():
def empty_cache():
get_accelerator().empty_cache()
get_accelerator().reset_peak_memory_stats()
def see_memory_usage(message, force=False):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册