mindspore.hal.empty_cache

mindspore.hal.empty_cache()[source]

Release all memory fragments in the memory pool, so that memory arrangement will be optimized, this api will be deprecated and removed in future versions, please use the api mindspore.runtime.empty_cache() instead.

Note

Currently, the MindSpore memory pool does not have the function of releasing memory fragments. This interface is reserved but implemented as an empty method and prompted in log mode when using.