Open NeuJzh opened 1 year ago
I use debug code,this place might have some errors。
yes , i also meet the problem. Do you deal with it?
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"))
thanks
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.