未验证 提交 66c58fa3 编写于 作者: D duanboqiang 提交者: GitHub

optimize-offload support adamw op type (#36432)

上级 8256f6fa
...@@ -284,7 +284,7 @@ class OffloadHelper(object): ...@@ -284,7 +284,7 @@ class OffloadHelper(object):
break break
vars_name = [] vars_name = []
if op.type == "adam": if op.type == "adam" or op.type == "adamw":
# {Moment1Out = [''], Moment2Out = [''], ParamOut = ['']} = # {Moment1Out = [''], Moment2Out = [''], ParamOut = ['']} =
# adam(inputs={Moment1 = [''], Moment2 = [''], Param = ['']}) # adam(inputs={Moment1 = [''], Moment2 = [''], Param = ['']})
vars_name.append(op.desc.input("Moment1")[0]) vars_name.append(op.desc.input("Moment1")[0])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册