未验证 提交 a770ce06 编写于 作者: L liuwei1031 提交者: GitHub

add doc for memory_optimize, test=develop (#17010)

* add doc for memory_optimize, test=develop

* update doc, test=develop

* doc update, test=develop
上级 d9991dcc
......@@ -1347,7 +1347,16 @@ All parameter, weight, gradient are variables in Paddle.
.def_property(
"memory_optimize",
[](const BuildStrategy &self) { return self.memory_optimize_; },
[](BuildStrategy &self, bool b) { self.memory_optimize_ = b; })
[](BuildStrategy &self, bool b) { self.memory_optimize_ = b; },
R"DOC(The type is BOOL, memory opitimize aims to save total memory
consumption, set to True to enable it.
Memory Optimize is our experimental feature, some variables
may be reused/removed by optimize strategy. If you need to
fetch some variable values when using this feature, please
set the persistable property of the variables to True.
Default False)DOC")
.def_property(
"is_distribution",
[](const BuildStrategy &self) { return self.is_distribution_; },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册