Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.
This repository was archived by the owner on May 21, 2025. It is now read-only.

pad_with_graph using numpy instead of jax.numpy #46

@ziyuanzhao2000

Description

@ziyuanzhao2000

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions