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:
143
143
│ │ │ ├── [LightningModule]
144
144
│ │ │ └── [Strategy]
145
145
│ │ │
146
- │ │ ├── on_before_zero_grad()
147
- │ │ │ ├── [Callbacks]
148
- │ │ │ └── [LightningModule]
149
- │ │ │
150
146
│ │ ├── [Forward Pass - training_step()]
151
147
│ │ │ └── [Strategy only]
152
148
│ │ │
153
- │ │ ├── on_before_backward ()
149
+ │ │ ├── on_before_zero_grad ()
154
150
│ │ │ ├── [Callbacks]
155
151
│ │ │ └── [LightningModule]
156
152
│ │ │
157
- │ │ ├── [Backward Pass]
158
- │ │ │ └── [Strategy only]
153
+ │ │ ├── optimizer_zero_grad()
154
+ │ │ │ └── [LightningModule only - optimizer_zero_grad() ]
159
155
│ │ │
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]
163
164
│ │ │
164
165
│ │ ├── on_before_optimizer_step()
165
166
│ │ │ ├── [Callbacks]
You can’t perform that action at this time.
0 commit comments