Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pad_with_graph using numpy instead of jax.numpy #46

Open
ziyuanzhao2000 opened this issue Mar 14, 2023 · 0 comments
Open

pad_with_graph using numpy instead of jax.numpy #46

ziyuanzhao2000 opened this issue Mar 14, 2023 · 0 comments

Comments

@ziyuanzhao2000
Copy link

ziyuanzhao2000 commented Mar 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant