pyg-team / pyg-lib

Low-Level Graph Neural Network Operators for PyG
https://pyg-lib.readthedocs.io
Other
172 stars 42 forks source link

Load `libpyg.so` first to let `torch.library.register_fake` find custom operators #329

Closed akihironitta closed 4 months ago

akihironitta commented 4 months ago

Part of https://github.com/pyg-team/pytorch_geometric/issues/8890.

This PR reorders import statements (in order to let the decorator torch.library.register_fake in future PRs) find pyg-lib's custom operators. This PR also includes minor clean up.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 86.40%. Comparing base (5043806) to head (f3a62f6). Report is 7 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #329 +/- ## ======================================= Coverage 86.40% 86.40% ======================================= Files 35 35 Lines 1214 1214 ======================================= Hits 1049 1049 Misses 165 165 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.