You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I ran pre-train, pc said that the data of the graph was not placed in the gpu. Is it related to the dgl version? Or is there a problem with the code you wrote
#69
dgl._ffi.base.DGLError: Cannot assign node feature "h" on device cuda:0 to a graph on device cpu. Call DGLGraph.to() to copy the graph to the same device.
The text was updated successfully, but these errors were encountered:
copy the graph to the device : cuda0
use the following code :
for key in graph_dict:
graph_dict[key] = graph_dict[key].to(torch.device("cuda" if use_cuda else "cpu"))
dgl._ffi.base.DGLError: Cannot assign node feature "h" on device cuda:0 to a graph on device cpu. Call DGLGraph.to() to copy the graph to the same device.
The text was updated successfully, but these errors were encountered: