Skip to content

Gradient clipping #22823

Answered by dfm
JuanFMontesinos asked this question in Q&A
Aug 1, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

@mattjj might be able to say more, but I think the typical approach would be to use something like the clip transformation from optax (as documented here), especially if you're already using optax for training. Even if you're not using optax, I expect that you could repurpose those functions.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dfm
Comment options

dfm Aug 2, 2024
Collaborator

Answer selected by JuanFMontesinos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants