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

data.LightningData module #3613

Merged
merged 21 commits into from Dec 3, 2021
Merged

data.LightningData module #3613

merged 21 commits into from Dec 3, 2021

Conversation

rusty1s
Copy link
Member

@rusty1s rusty1s commented Dec 1, 2021

No description provided.

@rusty1s rusty1s self-assigned this Dec 1, 2021
@codecov-commenter
Copy link

codecov-commenter commented Dec 1, 2021

Codecov Report

Merging #3613 (d19ccb9) into master (e8915ad) will decrease coverage by 0.18%.
The diff coverage is 54.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3613      +/-   ##
==========================================
- Coverage   81.66%   81.47%   -0.19%     
==========================================
  Files         294      294              
  Lines       14655    14732      +77     
==========================================
+ Hits        11968    12003      +35     
- Misses       2687     2729      +42     
Impacted Files Coverage Δ
torch_geometric/loader/hgt_loader.py 92.50% <ø> (+2.02%) ⬆️
torch_geometric/data/lightning_datamodule.py 25.66% <25.66%> (ø)
torch_geometric/loader/dataloader.py 80.55% <63.63%> (-2.78%) ⬇️
torch_geometric/loader/neighbor_loader.py 95.34% <95.89%> (+4.43%) ⬆️
torch_geometric/data/__init__.py 100.00% <100.00%> (ø)
torch_geometric/loader/utils.py 88.52% <100.00%> (-0.37%) ⬇️
torch_geometric/typing.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8915ad...d19ccb9. Read the comment docs.

@rusty1s rusty1s merged commit 8012326 into master Dec 3, 2021
@rusty1s rusty1s deleted the lightning_data branch December 3, 2021 10:54
if 'dataset' in kwargs:
del kwargs['dataset']
if 'collate_fn' in kwargs:
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry to ask in a kind of random place, just trying to track down the MR which added these - I don't understand why it is required

Copy link
Member Author

Choose a reason for hiding this comment

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

This is required for PyTorch Lightning as it will try to re-create a given DataLoader instance for every GPU process (by calling its __init__ function). As such, collate_fn (an attribute of the DataLoader) is now present in kwargs.

@Padarn
Copy link
Contributor

Padarn commented Mar 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants