Small fix to mjx tutorial.
PiperOrigin-RevId: 616235636 Change-Id: I38675c032bdca8f26ab0550896928d097ee86653
This commit is contained in:
committed by
Copybara-Service
parent
74d3d8cb4e
commit
e95159b4f6
+1
-1
@@ -367,7 +367,7 @@
|
||||
"rng = jax.random.split(rng, 4096)\n",
|
||||
"batch = jax.vmap(lambda rng: mjx_data.replace(qpos=jax.random.uniform(rng, (1,))))(rng)\n",
|
||||
"\n",
|
||||
"jit_step = jax.vmap(mjx.step, in_axes=(None, 0))\n",
|
||||
"jit_step = jax.jit(jax.vmap(mjx.step, in_axes=(None, 0)))\n",
|
||||
"batch = jit_step(mjx_model, batch)\n",
|
||||
"\n",
|
||||
"print(batch.qpos)"
|
||||
|
||||
Reference in New Issue
Block a user