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
dgl._ffi.base.DGLError: Cannot assign node feature "feat" on device cpu to a graph on device cuda:0. Call DGLGraph.to() to copy the graph to the same device.
when I run graph classification.
The text was updated successfully, but these errors were encountered:
self.symmetrical_global_graph = self.symmetrical_global_graph.to(self.device)
for k, v in features.items():
if v.device != self.device:
features[k] = v.to(self.device)
self.symmetrical_global_graph.ndata['feat'] = features
The error is:
dgl._ffi.base.DGLError: Cannot assign node feature "feat" on device cpu to a graph on device cuda:0. Call DGLGraph.to() to copy the graph to the same device.
when I run graph classification.
The text was updated successfully, but these errors were encountered: