AttributeError: 'numpy.ndarray' object has no attribute 'device'

#1
g.register_message_func(msg_func)
g.register_reduce_func(red_func)
g.pull(g.nodes())

I met this error when using g.pull()

image

#2

It seems you are using PyTorch backend, but assigning the node data with a numpy array.

#3

Thank you so much! It’s caused by this problem indeed!