Minor fix for pyg-lib usage in HeteroLinear and RGCNConv#5510
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5510 +/- ##
==========================================
+ Coverage 83.84% 83.86% +0.02%
==========================================
Files 349 349
Lines 19231 19231
==========================================
+ Hits 16124 16128 +4
+ Misses 3107 3103 -4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Use |
pyg-lib usage in HeteroConv and RGCNConv
|
This PR will currently break TorchScript functionality since we cannot check for device within a TorchScript program (that's why we have this awkward self._WITH_PYG_LIB = torch.cuda.is_available() and _WITH_PYG_LIBcheck as a workaround in |
|
cc @dszwicht |
|
@rusty1s I have had a minimal implementation of |
pyg-lib usage in HeteroConv and RGCNConvpyg-lib usage in HeteroLinear and RGCNConv
|
okay id assume @dszwicht will PR that to pyg_lib. in that case then then once pyg_lib is updated all pathways should work |
|
Indeed. PR to |
|
pyg-team/pyg-lib#111 |
|
Thanks for the update @puririshi98. I noticed that |
…eam#5510) pyg_lib pathway is chosen if cuda is available and pyg_lib is available. but if the input is not cuda we should not be using the pyg_lib pathway. simple fix without this a ton of CI fails for testing rgcnconv and heterolinear w/ cpu inputs [errors.txt](https://github.com/pyg-team/pytorch_geometric/files/9629902/errors.txt) Co-authored-by: Matthias Fey <matthias.fey@tu-dortmund.de>
…eam#5510) pyg_lib pathway is chosen if cuda is available and pyg_lib is available. but if the input is not cuda we should not be using the pyg_lib pathway. simple fix without this a ton of CI fails for testing rgcnconv and heterolinear w/ cpu inputs [errors.txt](https://github.com/pyg-team/pytorch_geometric/files/9629902/errors.txt) Co-authored-by: Matthias Fey <matthias.fey@tu-dortmund.de>
pyg_lib pathway is chosen if cuda is available and pyg_lib is available. but if the input is not cuda we should not be using the pyg_lib pathway. simple fix
without this a ton of CI fails for testing rgcnconv and heterolinear w/ cpu inputs
errors.txt