Skip to main content

Module jax_env

Module jax_env 

Source
Expand description

Environments written in JAX, imported from the directories that python -m ruxla.export writes.

A directory has manifest.json (the name, the action space, and the number of leaves of an observation), reset.json, step.json, and optionally legal_action_mask.json: the functions of EnvFunctions as documents of ruxla.export_jaxpr, which ruxla_import reads. load_functions reads them, and crate::compiled::generate_from_functions compiles them ahead of time to Rust like the environments written with ruxla.

Enums§

LoadError
Errors while loading an imported environment.

Constants§

MANIFEST_VERSION
The version of manifest.json that this crate reads.

Functions§

load_functions
Reads the functions of the imported environment in dir.