Skip to content

More information for teardown in LightningDataModule #451

Answered by ashleve
yipliu asked this question in Q&A
Discussion options

You must be logged in to vote

According to lightning docs:
https://pytorch-lightning.readthedocs.io/en/latest/data/datamodule.html#teardown

The teardown is just a handy function called at the end of fit, validate, test, or predict.

It's up to you to decide what the function should be doing.

It is called from every process across all the nodes.

Thestage arg informs us whether the current stage is "fit", "validate", etc.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by yipliu
Comment options

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

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants