Skip to content

Commit

Permalink
optimize-offload support adamw op type
Browse files Browse the repository at this point in the history
  • Loading branch information
firestonelib committed Oct 14, 2021
1 parent 12e6dbb commit e288c10
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

1 comment on commit e288c10

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.