mindspore.runtime.empty_cache

mindspore.runtime.empty_cache()[source]

Empty cache in the memory pool.

Note

  • Empty cache helps reduce the fragmentation of device memory.

Supported Platforms:

Ascend