docs.rs failed to build relayrl_types-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
relayrl_types-0.3.13
relayrl_types
Core data types for the RelayRL framework.
- RelayRLAction: serializable action container (obs, act, mask, reward, data, done)
- RelayRLTrajectory: in-memory trajectory buffer with a max length
- Safetensors-based tensor (de)serialization helpers
Install
Add to your Cargo.toml:
= { = "../relayrl_types" } # or version
Quick start
use RelayRLAction;
use ;
use ;
// Create some tensors
let obs = randn;
let act = zeros;
// Serialize tensors into a RelayRLAction
let step = from_tensors.expect;
// Buffer actions in a trajectory (clears when terminal and capacity exceeded)
let mut traj = new;
traj.add_action;
// Terminal step example
let terminal = from_tensors.unwrap;
traj.add_action;
License
Apache-2.0