DGLGraph.to() to copy the graph to the same device

I’m still a new python learner, and when I tried to execute this code,


I have this error.

please, help me

Looks like your norm variable is on GPU but the graph g is on CPU. As the message said, you will need to call g.to(device) before assigning.

For tensorflow, you can try

g = g.to('/GPU:0')
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.