Skip to content

Commit

Permalink
test=allcase
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyingli committed Oct 8, 2021
1 parent b55bb84 commit 90dbf83
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def __init__(self, optimizer, hcg, strategy):
"optmizer'grad clip will be changed.")

if self._sharding_enable:
# change sharding inner_optimizer's _grad_clip
self._inner_opt._inner_optimizer._grad_clip = HybridParallelClipGrad(
self._inner_opt._grad_clip, hcg)
else:
Expand Down

1 comment on commit 90dbf83

@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.