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

Fix PyG Loaders by properly supporting multi_get_tensor #2860

Merged
merged 95 commits into from
Nov 17, 2022

Conversation

alexbarghi-nv
Copy link
Member

@alexbarghi-nv alexbarghi-nv commented Oct 28, 2022

Fixes the currently-broken pyg_hetero_mag notebook, which fails due to the sampling output not matching what the API expects. Note: this does use an optional import of PyG, similar to how other code optionally uses torch or cudf.

Also adds an in-place fillna function for PropertyGraph and MGPropertyGraph. There is a separate issue to do this for RemoteGraph (https://github.com/rapidsai/graph_dl/issues/97).

Also removes an unintended dependence on cugraph by adding is_multi_gpu() methods to PropertyGraph and MGPropertyGraph so whether a graph is MG can be determined without importing cugraph.

Closes https://github.com/rapidsai/graph_dl/issues/78
Closes https://github.com/rapidsai/graph_dl/issues/77
Closes https://github.com/rapidsai/graph_dl/issues/63

Merge after #2832

eriknw and others added 30 commits August 9, 2022 16:13
Currently, this only does SG version for rapidsai#2401.  MG is still TODO.

This also doesn't change anything user-facing (yet).
Co-authored-by: Vibhu Jawa <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Nov 10, 2022

Codecov Report

Base: 60.80% // Head: 60.78% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (2e06c04) compared to base (85c447b).
Patch coverage: 72.46% of modified lines in pull request are covered.

Additional details and impacted files
@@               Coverage Diff                @@
##           branch-22.12    #2860      +/-   ##
================================================
- Coverage         60.80%   60.78%   -0.03%     
================================================
  Files               122      122              
  Lines              6891     6915      +24     
================================================
+ Hits               4190     4203      +13     
- Misses             2701     2712      +11     
Impacted Files Coverage Δ
...h/cugraph/dask/sampling/uniform_neighbor_sample.py 22.00% <0.00%> (+0.84%) ⬆️
...ugraph/cugraph/sampling/uniform_neighbor_sample.py 87.87% <0.00%> (+5.02%) ⬆️
...ugraph/cugraph/dask/structure/mg_property_graph.py 13.70% <33.33%> (+0.44%) ⬆️
...h/cugraph/gnn/pyg_extensions/data/cugraph_store.py 79.55% <74.07%> (-2.23%) ⬇️
...raph/gnn/pyg_extensions/sampler/cugraph_sampler.py 75.75% <84.00%> (-2.43%) ⬇️
python/cugraph/cugraph/structure/property_graph.py 96.03% <100.00%> (-0.15%) ⬇️
...raph/structure/graph_implementation/simpleGraph.py 78.90% <0.00%> (+0.26%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@alexbarghi-nv
Copy link
Member Author

rerun tests

reason: git checkout failure

Copy link
Contributor

@eriknw eriknw left a comment

Choose a reason for hiding this comment

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

Property graph changes look good to me. I left a couple non-critical nitpicky comments.

Thanks for working on this @alexbarghi-nv!

python/cugraph/cugraph/tests/test_property_graph.py Outdated Show resolved Hide resolved
python/cugraph/cugraph/structure/property_graph.py Outdated Show resolved Hide resolved
@BradReesWork
Copy link
Member

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 6574e55 into rapidsai:branch-22.12 Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change improvement Improvement / enhancement to an existing function
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants