-
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 on
Description
🚀 Feature
Add an on_after_backward callback option.
Motivation
Currently there are no callbacks for after the backwards step so non-essential code like logging gradients clutters the LightningModule.
Pitch
Expand the callback options to include a hook for on_after_backward() to execute callbacks immediately after the backwards pass
Alternatives
Sticking my non-essential gradient logging code in my LightningModule
awaelchli and FelixLorenz
Metadata
Metadata
Assignees
Labels
featureIs an improvement or enhancementIs an improvement or enhancementhelp wantedOpen to be worked onOpen to be worked on