Hello, I am trying to reimplement some code based on dgl, where I keep getting into this error:
dgl._ffi.base.DGLError: Cannot assign node feature “event_indices” on device /job:localhost/replica:0/task:0/device:CPU:0 to a graph on device cpu. Call DGLGraph.to() to copy the graph to the same device.
the operation that raises it is:
dgl_graph.ndata[‘event_indices’] = tf.constant(event_indices)
if I move the graph to CPU:0 with DGLGraph.to() I get this error:
RuntimeError: Invalid device string: ‘/CPU:0’
The backend is tensorflow and the GPU is deactivated
os.environ[‘CUDA_VISIBLE_DEVICES’] = ‘-1’
os.environ[‘DGLBACKEND’] = ‘tensorflow’
If I try to enable the GPU, moving the data to it, or using a pytorch backend, I run in similar errors.
I would really appreciate your help as I am not very familiar with DGL!