mindspore.hal.empty_cache

View Source On Gitee
mindspore.hal.empty_cache()[source]

Release all memory fragments in the memory pool, so that memory arrangement will be optimized.

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.