Skip to content

Commit

Permalink
decreased batch size to allow execution in notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlottaSartore committed Dec 9, 2024
1 parent 10be65f commit 56fcf7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/jaxsim_as_physics_engine.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"key = jax.random.PRNGKey(seed=0)\n",
"\n",
"# Initialize the simulated time.\n",
"T = jnp.arange(start=0, stop=1.0, step=model.time_step)\n",
"T = jnp.arange(start=0, stop=0.3, step=model.time_step)\n",
"\n",
"# Simulate\n",
"for _t in T:\n",
Expand Down Expand Up @@ -236,7 +236,7 @@
"# Then we have to create the vector of initial state\n",
"\n",
"# Split subkeys for sampling random initial data.\n",
"batch_size = 10\n",
"batch_size = 5\n",
"key, *subkeys = jax.random.split(key=key, num=batch_size + 1)\n",
"\n",
"# Create the batched data.\n",
Expand Down

0 comments on commit 56fcf7b

Please sign in to comment.