Skip to content
Discussion options

You must be logged in to vote

hi!

  • There is a gif here representing the call order for some of the hooks. We are planning to add more info regarding this inside the docs. https://pytorch-lightning.readthedocs.io/en/latest/extensions/callbacks.html
  • You can consider hooks as just normal methods of objects that are called at certain points within the code. For eg when training starts it calls on_train_start, when training epoch starts it calls on_train_epoch_start etc... The hook name can also help you determine where it's called.

For a complete cycle, there can be just one lightning module, so hooks related to the lightning module will be called only once whenever they are required, but in the case of callbacks, it can…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@malfonsoarquimea
Comment options

Answer selected by malfonsoarquimea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment