Skip to content
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

Deprecate LightningModule.datamodule reference in favor of the trainer one (#6929) #7168

Conversation

mesejo
Copy link
Contributor

@mesejo mesejo commented Apr 22, 2021

What does this PR do?

This PR attempts to deprecate datamodule and update the documentation accordingly as decided in the GitHub issue

Fixes #6929

@codecov
Copy link

codecov bot commented Apr 22, 2021

Codecov Report

Merging #7168 (fd60e39) into master (6d7c6d6) will increase coverage by 0%.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #7168   +/-   ##
======================================
  Coverage      87%     87%           
======================================
  Files         200     200           
  Lines       12894   12895    +1     
======================================
+ Hits        11236   11237    +1     
  Misses       1658    1658           

Copy link
Contributor

@carmocca carmocca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs/source/common/lightning_module.rst Outdated Show resolved Hide resolved
pytorch_lightning/core/lightning.py Outdated Show resolved Hide resolved
@awaelchli awaelchli added the docs Documentation related label May 3, 2021
@awaelchli awaelchli added this to the v1.3 milestone May 3, 2021
@awaelchli awaelchli added the data handling Generic data-related topic label May 3, 2021
@awaelchli
Copy link
Contributor

added the requested test

@awaelchli awaelchli marked this pull request as ready for review May 3, 2021 08:59
@awaelchli awaelchli requested a review from carmocca May 3, 2021 09:00
@carmocca carmocca added the ready PRs ready to be merged label May 3, 2021
@carmocca carmocca changed the title update documentation and deprecated datamodule (#6929) Deprecate LightningModule.datamodule reference in favor of the trainer one (#6929) May 3, 2021
@carmocca carmocca enabled auto-merge (squash) May 3, 2021 23:33
@carmocca carmocca merged commit 6da747e into Lightning-AI:master May 4, 2021
kaushikb11 pushed a commit to kaushikb11/pytorch-lightning that referenced this pull request May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data handling Generic data-related topic docs Documentation related ready PRs ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing LightningModule datamodule reference
5 participants