mindspore.hal.empty_cache
- mindspore.hal.empty_cache()[source]
Release all memory fragments in the memory pool, so that memory arrangement will be optimized.
Note
The api will be deprecated, 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.