未验证 提交 4cbcc9b6 编写于 作者: C Chengmo 提交者: GitHub

fix momentum op register (#29941)

* fix momentum op register
上级 7c1f69bd
......@@ -118,6 +118,10 @@ REGISTER_OP_VERSION(momentum)
Upgrade momentum add 2 attributes [regularization_method, regularization_coeff].
)ROC",
paddle::framework::compatible::OpVersionDesc()
.NewInput("MasterParam", "FP32 master weight for AMP.")
.NewOutput("MasterParamOut",
"The updated FP32 master weight for AMP. "
"It shared memory with Input(MasterParam).")
.NewAttr("regularization_method",
"(string) regularization_method, right now only support "
"l2decay or none",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册