You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/models.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,8 @@ There are two methods that need to be defined in any class that inherits the Bas
128
128
129
129
While this is the bare minimum, you can redefine or use any of the Pytorch Lightning standard methods to tweak your model and training to your liking.
130
130
131
+
If your model needs to use custom data-aware initialization techniques(like NODE), you can override `data_aware_initialization(self, datamodule)`in the model. In here you have access to the datamodule and the dataloaders for initialization.
132
+
131
133
In addition to the model, you will also need to define a config. Configs are python dataclasses and should inherit `ModelConfig`and will have all the parameters of the ModelConfig. by default. Any additional parameter should be defined in the dataclass.
0 commit comments