Fix #3435. Add token to ensure sequential calls for mjx-warp refit and render.
PiperOrigin-RevId: 960553589 Change-Id: I76caca5a82dd7f96b39e51c5b67b7382ebd1726d
This commit is contained in:
committed by
Copybara-Service
parent
a1d772c9ad
commit
5e3464f475
@@ -90,6 +90,19 @@ Rendering
|
||||
|
||||
**Migration:** Set :at:`softness` to 1 to reproduce the previous appearance of existing models.
|
||||
|
||||
MJX
|
||||
^^^
|
||||
|
||||
.. admonition:: Breaking API changes
|
||||
:class: attention
|
||||
|
||||
- :func:`mjx.render` and :func:`mjx.render_with_segmentation` now return the updated :class:`mjx.Data` as the last
|
||||
element in their return tuple (i.e. ``(rgb, depth, d)`` and ``(rgb, depth, seg, d)``). This ensures JAX/XLA
|
||||
strictly enforces causal scheduling between sequential ``refit_bvh`` and ``render`` calls.
|
||||
|
||||
**Migration:** Update unpacking calls from ``pixels, depth = mjx.render(mx, d, rc)`` to
|
||||
``pixels, depth, d = mjx.render(mx, d, rc)``.
|
||||
|
||||
Bug fixes
|
||||
^^^^^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user