Skip to content

Commit 6a7acf0

Browse files
GdoongMathewlantiga
authored andcommitted
docs: update setup and restore. (#21149)
(cherry picked from commit 8ea6165)
1 parent 2fe67a7 commit 6a7acf0

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

docs/source-pytorch/common/hooks.rst

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,30 @@ with the source of each hook indicated:
8383
trainer.fit()
8484
8585
├── setup(stage="fit")
86-
│ └── [Callbacks only]
87-
88-
├── on_fit_start()
86+
│ ├── [LightningDataModule]
8987
│ ├── [Callbacks]
9088
│ ├── [LightningModule]
89+
│ ├── [LightningModule.configure_shared_model()]
90+
│ ├── [LightningModule.configure_model()]
91+
│ ├── Strategy.restore_checkpoint_before_setup
92+
│ │ ├── [LightningModule.on_load_checkpoint()]
93+
│ │ ├── [LightningModule.load_state_dict()]
94+
│ │ ├── [LightningDataModule.load_state_dict()]
95+
│ │ ├── [Callbacks.on_load_checkpoint()]
96+
│ │ └── [Callbacks.load_state_dict()]
9197
│ └── [Strategy]
9298
99+
├── on_fit_start()
100+
│ ├── [Callbacks]
101+
│ └── [LightningModule]
102+
103+
├── Strategy.restore_checkpoint_after_setup
104+
│ ├── [LightningModule.on_load_checkpoint()]
105+
│ ├── [LightningModule.load_state_dict()]
106+
│ ├── [LightningDataModule.load_state_dict()]
107+
│ ├── [Callbacks.on_load_checkpoint()]
108+
│ └── [Callbacks.load_state_dict()]
109+
93110
├── on_sanity_check_start()
94111
│ ├── [Callbacks]
95112
│ ├── [LightningModule]

0 commit comments

Comments
 (0)