jraph icon indicating copy to clipboard operation
jraph copied to clipboard

pad_with_graph using numpy instead of jax.numpy

Open ziyuanzhao2000 opened this issue 1 year ago • 0 comments

I just found this issue while using this util function in my project, as shown here:

https://github.com/deepmind/jraph/blob/51f5990104f7374492f8f3ea1cbc47feb411c69c/jraph/_src/utils.py#L614-L619

Is there any particular reason for using numpy instead of jax.numpy?

I will be doing GNN training on GPU, which requires the data to stay on the GPU devices, and I'm not sure if using numpy array is good idea in this case.

ziyuanzhao2000 avatar Mar 14 '23 14:03 ziyuanzhao2000