-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing LightningModule datamodule reference #6929
Comments
Can I work on this? |
@carmocca is the model expected to have a reference to the data module during training? |
Sure!
I guess so, given the docs link above and the fact that it has a property for it I personally wouldn't mind removing this and forcing access through the trainer. |
Dear @mesejo, Could you make a PR for this ? Best, |
Hi @carmocca, when you said:
Were you referring to the datamodule property? |
I was referring to deprecating cc: @PyTorchLightning/core-contributors Any opinions about this? Should we keep both ways? |
I would prefer if we don't attach the datamodule to the LightningModule and instead reference it through trainer. |
Okay, let's deprecate it then and update the docs/ocurrences |
…ner one (#6929) (#7168) Co-authored-by: Adrian Wälchli <[email protected]> Co-authored-by: Carlos Mocholí <[email protected]>
…ner one (Lightning-AI#6929) (Lightning-AI#7168) Co-authored-by: Adrian Wälchli <[email protected]> Co-authored-by: Carlos Mocholí <[email protected]>
🐛 Bug
This docs snippet does not work:
https://pytorch-lightning.readthedocs.io/en/latest/common/lightning_module.html#datamodule
To Reproduce
Expected behavior
self.datamodule
worksAlternatives
Update docs
Environment
master
Additional context
Reported by Brian Staber in Slack
The text was updated successfully, but these errors were encountered: