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

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

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

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