Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an issue occurring in the cuGraph-DGL example for "mixed" mode. (#…
…3927) Fixing the following bug: ``` Training in mixed mode. Loading data Traceback (most recent call last): File "/opt/rapids/cugraph/python/cugraph-dgl/examples/graphsage/node-classification.py", line 249, in <module> g.get_node_storage(key="feat", ntype="_N") File "/usr/local/lib/python3.10/dist-packages/dgl/frame.py", line 530, in fetch return super().fetch(indices, device, pin_memory=pin_memory, **kwargs) File "/usr/local/lib/python3.10/dist-packages/dgl/storages/pytorch_tensor.py", line 40, in fetch raise ValueError( ValueError: Got indices on device cuda:0 whereas the feature tensor is on cpu. Please either (1) move the graph to GPU with to() method, or (2) pin the graph with pin_memory_() method. ``` which appears in `mixed` mode. NOTE: the option `(1) move the graph to GPU with to()` is not available because in mixed mode the graph must be on the CPU. Authors: - Andrei Ivanov (https://github.com/drivanov) - Brad Rees (https://github.com/BradReesWork) Approvers: - Alex Barghi (https://github.com/alexbarghi-nv) - Vibhu Jawa (https://github.com/VibhuJawa) URL: #3927
- Loading branch information