-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
featureIs an improvement or enhancementIs an improvement or enhancementhelp wantedOpen to be worked onOpen to be worked onpriority: 1Medium priority taskMedium priority task
Milestone
Description
🚀 Feature
The current clip_gradient uses clip_grad_norm; can we add clip_grad_value?
============================================================
@tchaton
As far as I know, there is a difference between clip_grad_by_value and clip_grad_by_norm.
All of the implementations in PL only use clip_grad_by_norm.
clip_grad_by_value does not perform clipping with norm value but just performs clipping by value, so it is useful when learning model with noisy data.
Please let me know if you think I'm wrong.
pytorch clip by norm link
pytorch clip by value link
Sincerely,
Anthony Kim.
hihunjin
Metadata
Metadata
Assignees
Labels
featureIs an improvement or enhancementIs an improvement or enhancementhelp wantedOpen to be worked onOpen to be worked onpriority: 1Medium priority taskMedium priority task