mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-07-30 21:34:30 +00:00
Add generic conversion wrapper between Array API compatible frameworks (#1333)
This commit is contained in:
@@ -27,6 +27,7 @@ title: Misc Wrappers
|
||||
## Data Conversion Wrappers
|
||||
|
||||
```{eval-rst}
|
||||
.. autoclass:: gymnasium.wrappers.ArrayConversion
|
||||
.. autoclass:: gymnasium.wrappers.JaxToNumpy
|
||||
.. autoclass:: gymnasium.wrappers.JaxToTorch
|
||||
.. autoclass:: gymnasium.wrappers.NumpyToTorch
|
||||
|
@@ -34,6 +34,8 @@ wrapper in the page on the wrapper type
|
||||
- Converts an image observation computed by ``reset`` and ``step`` from RGB to Grayscale.
|
||||
* - :class:`HumanRendering`
|
||||
- Allows human like rendering for environments that support "rgb_array" rendering.
|
||||
* - :class:`ArrayConversion`
|
||||
- Wraps an environment based on any Array API compatible framework, e.g. torch, jax, numpy, such that it can be interacted with any other Array API compatible framework.
|
||||
* - :class:`JaxToNumpy`
|
||||
- Wraps a Jax-based environment such that it can be interacted with NumPy arrays.
|
||||
* - :class:`JaxToTorch`
|
||||
|
Reference in New Issue
Block a user