提交 72d57f5c 编写于 作者: W wuzewu

update context interface

上级 10340ca1
......@@ -527,14 +527,10 @@ class Module(object):
paddle_helper.remove_feed_fetch_op(program)
if not for_test:
if trainable != "Default":
paddle_helper.set_parameter_trainable(program, trainable)
if learning_rate != "Default":
paddle_helper.set_parameter_learning_rate(
program, learning_rate)
paddle_helper.set_parameter_learning_rate(program, learning_rate)
if regularizer != "Default":
paddle_helper.set_parameter_regularizer(program, regularizer)
self._restore_parameter(program)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册