Skip to content

Return unclipped gradient from clip_grad_norm_#756

Merged
sgugger merged 1 commit intohuggingface:mainfrom
samuelstevens:clip_norm-returns-norm
Oct 14, 2022
Merged

Return unclipped gradient from clip_grad_norm_#756
sgugger merged 1 commit intohuggingface:mainfrom
samuelstevens:clip_norm-returns-norm

Conversation

@samuelstevens
Copy link
Contributor

Returns the unclipped gradient from clip_grad_norm_ like torch.nn.utils.clip_grad_norm_ does.

Initially brought up in #641.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 14, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Thanks for working on this!

@sgugger sgugger merged commit 693d468 into huggingface:main Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants