Update mjx-warp docs.

PiperOrigin-RevId: 875966048
Change-Id: I333e8562f3db333f6c64af67cee1f735cb21232d
This commit is contained in:
Baruch Tabanpour
2026-02-26 17:25:48 -08:00
committed by Copybara-Service
parent 07cda5a3c4
commit 67b6ab0589
2 changed files with 10 additions and 2 deletions
+8
View File
@@ -262,6 +262,14 @@ volume hierarchy (BVH) and executing the raycaster:
rgb, d = render_fn(mx, d, rc.pytree())
.. WARNING::
The batch dimension ``nworld`` is fixed when the render context is created via
:func:`~mujoco.mjx.create_render_context` since the underlying Warp render context allocates
buffers for ``nworld`` environments that are not visible to JAX. :func:`~mujoco.mjx.render`
will always return outputs with a leading batch dimension of size ``nworld``. Because of this,
there is a known issue where :func:`~mujoco.mjx.render` does not play nice with a
``jax.vmap(jax.lax.scan)``.
Multi-GPU rendering with ``pmap``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^