forked from mindspore-Ecosystem/mindspore
!30172 Add chinese api for ms_memory_recycle
Merge pull request !30172 from huangbingjian/code_docs_memory
This commit is contained in:
commit
abe8b8422a
|
@ -134,8 +134,5 @@ mindspore
|
|||
|
||||
.. mscnautosummary::
|
||||
:toctree: mindspore
|
||||
:nosignatures:
|
||||
:template: classtemplate.rst
|
||||
|
||||
mindspore.ms_memory_recycle
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
mindspore.ops.ms_memory_recycle
|
||||
================================
|
||||
|
||||
.. py:function:: mindspore.ops.ms_memory_recycle()
|
||||
|
||||
回收MindSpore使用的内存。
|
||||
|
||||
在一个进程中训练多个神经网络模型时,MindSpore使用的内存非常大,这是因为MindSpore为每个模型缓存了运行时的内存。
|
||||
|
||||
为了回收这些缓存的内存,用户可以在训练一个模型后调用这个函数。
|
Loading…
Reference in New Issue