google-deepmind / jraph

A Graph Neural Network Library in Jax
https://jraph.readthedocs.io/en/latest/
Apache License 2.0
1.36k stars 88 forks source link

fix hamilton graph network example #44

Open cpehle opened 1 year ago

cpehle commented 1 year ago

Without this fix I got the following error trace:

  File "jraph/examples/hamiltonian_graph_network.py", line 239, in hamiltonian_from_state_fn
    graph = set_system_state(static_graph, position, momentum)
  File "jraph/examples/hamiltonian_graph_network.py", line 202, in set_system_state
    nodes = static_graph.nodes.copy(position=position, momentum=momentum)
jax._src.traceback_util.UnfilteredStackTrace: TypeError: frozendict.copy() got an unexpected keyword argument 'position'
google-cla[bot] commented 1 year ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.