File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
docs/source-pytorch/common Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -143,23 +143,24 @@ with the source of each hook indicated:
143143 │ │ │ ├── [LightningModule]
144144 │ │ │ └── [Strategy]
145145 │ │ │
146- │ │ ├── on_before_zero_grad()
147- │ │ │ ├── [Callbacks]
148- │ │ │ └── [LightningModule]
149- │ │ │
150146 │ │ ├── [Forward Pass - training_step()]
151147 │ │ │ └── [Strategy only]
152148 │ │ │
153- │ │ ├── on_before_backward ()
149+ │ │ ├── on_before_zero_grad ()
154150 │ │ │ ├── [Callbacks]
155151 │ │ │ └── [LightningModule]
156152 │ │ │
157- │ │ ├── [Backward Pass]
158- │ │ │ └── [Strategy only]
153+ │ │ ├── optimizer_zero_grad()
154+ │ │ │ └── [LightningModule only - optimizer_zero_grad() ]
159155 │ │ │
160- │ │ ├── on_after_backward()
161- │ │ │ ├── [Callbacks]
162- │ │ │ └── [LightningModule]
156+ │ │ ├── [Backward Pass - Strategy.backward()]
157+ │ │ │ ├── on_before_backward()
158+ │ │ │ │ ├── [Callbacks]
159+ │ │ │ │ └── [LightningModule]
160+ │ │ │ ├── LightningModule.backward()
161+ │ │ │ └── on_after_backward()
162+ │ │ │ ├── [Callbacks]
163+ │ │ │ └── [LightningModule]
163164 │ │ │
164165 │ │ ├── on_before_optimizer_step()
165166 │ │ │ ├── [Callbacks]
You can’t perform that action at this time.
0 commit comments