未验证 提交 d9d35927 编写于 作者: N niuliling123 提交者: GitHub

Fix untest error in test_adamax_op (#51692)

上级 3b2cd23a
...@@ -2809,7 +2809,7 @@ class AdamaxOptimizer(Optimizer): ...@@ -2809,7 +2809,7 @@ class AdamaxOptimizer(Optimizer):
with param.block.program._optimized_guard( with param.block.program._optimized_guard(
[param, grad] [param, grad]
), name_scope('adamx'): ), name_scope('adamx'):
beta1_pow_acc = self._get_accumulator( beta1_pow_acc = self._get_accumulator_master(
self._beta1_pow_acc_str, param self._beta1_pow_acc_str, param
) )
if in_dygraph_mode(): if in_dygraph_mode():
......
...@@ -31,6 +31,7 @@ def adamx_wrapper( ...@@ -31,6 +31,7 @@ def adamx_wrapper(
beta1=0.78, beta1=0.78,
beta2=0.899, beta2=0.899,
epsilon=1e-5, epsilon=1e-5,
find_master=False,
): ):
return paddle._C_ops.adamax_( return paddle._C_ops.adamax_(
param, param,
...@@ -43,6 +44,7 @@ def adamx_wrapper( ...@@ -43,6 +44,7 @@ def adamx_wrapper(
beta1, beta1,
beta2, beta2,
epsilon, epsilon,
find_master,
) )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册