Skip to content

Commit

Permalink
Merge pull request #24 from rk1a/fix-jumanji-spec-properties
Browse files Browse the repository at this point in the history
Fix Jumanji environment spec access in examples
  • Loading branch information
sash-a authored Apr 16, 2024
2 parents 2b8354d + 4ca6918 commit 40a64e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/anakin_dqn_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
"):\n",
" \"\"\"Sets up the experiment.\"\"\"\n",
" cores_count = len(jax.devices()) # get available TPU cores.\n",
" network = get_network_fn(env.action_spec().num_values) # define network.\n",
" network = get_network_fn(env.action_spec.num_values) # define network.\n",
" optim = optax.adam(step_size) # define optimiser.\n",
"\n",
" rng, rng_e, rng_p = random.split(random.PRNGKey(seed), num=3) # prng keys.\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/anakin_ppo_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
" \"\"\"Sets up the experiment and returns the necessary information.\"\"\"\n",
"\n",
" cores_count = len(jax.devices()) # get available TPU cores.\n",
" network = get_network_fn(env.action_spec().num_values) # define network.\n",
" network = get_network_fn(env.action_spec.num_values) # define network.\n",
" optim = optax.adam(step_size) # define optimiser.\n",
"\n",
" rng, rng_e, rng_p = random.split(random.PRNGKey(seed), num=3) # prng keys.\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/anakin_prioritised_dqn_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
"):\n",
" \"\"\"Sets up the experiment.\"\"\"\n",
" cores_count = len(jax.devices()) # get available TPU cores.\n",
" network = get_network_fn(env.action_spec().num_values) # define network.\n",
" network = get_network_fn(env.action_spec.num_values) # define network.\n",
" optim = optax.adam(step_size) # define optimiser.\n",
"\n",
" rng, rng_e, rng_p = random.split(random.PRNGKey(seed), num=3) # prng keys.\n",
Expand Down

0 comments on commit 40a64e5

Please sign in to comment.