rlmesh.numpy

NumPy-backed RLMesh clients and tensor helpers.

import rlmesh.numpy

The NumPy backend: the same clients, models, and sandbox sessions as the top-level package, with tensor leaves decoded to NumPy arrays. Space wrappers from these clients sample NumPy-compatible values.

pip install "rlmesh[numpy]"

Conversion semantics

  • asarray() returns a writable copy, matching Gymnasium, where observations are writable (obs /= 255.0 works). For a zero-copy read-only view, use numpy.from_dlpack(tensor) or the buffer protocol.
  • from_array() always copies: it makes the array C-contiguous and serializes it into a fresh RLMesh tensor.

Classes

Functions

Type aliases