mindspore.ms_memory_recycle
- mindspore.ms_memory_recycle()[source]
Recycle memory used by MindSpore. When train multi Neural network models in one process, memory used by MindSpore is very large, this is because MindSpore cached runtime memory for every model. To recycle these cached memory, users can call this function after training of one model.