mindspore.hal.empty_cache

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

Empty cache in the memory pool, this api will be deprecated and removed in future versions. Please use the api mindspore.runtime.empty_cache() instead.

Note

  • Empty cache help reduce the fragmentation of device memory.

  • Support Atlas A2 series products.

Supported Platforms:

Ascend