Skip to content

Commit

Permalink
optimize-offload support adamw op type (#36432)
Browse files Browse the repository at this point in the history
  • Loading branch information
firestonelib committed Oct 14, 2021
1 parent 8256f6f commit 66c58fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def offload(self, block, startup_block):
break

vars_name = []
if op.type == "adam":
if op.type == "adam" or op.type == "adamw":
# {Moment1Out = [''], Moment2Out = [''], ParamOut = ['']} =
# adam(inputs={Moment1 = [''], Moment2 = [''], Param = ['']})
vars_name.append(op.desc.input("Moment1")[0])
Expand Down

0 comments on commit 66c58fa

Please sign in to comment.