mindspore.runtime.reset_max_memory_allocated
=============================================

.. 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/runtime/mindspore.runtime.reset_max_memory_allocated.rst
    :alt: 查看源文件


.. py:function:: mindspore.runtime.reset_max_memory_allocated()

    重置内存池实际被Tensor占用的内存大小的峰值。