pub enum Actions<'a> {
Discrete(&'a [i32]),
MultiDiscrete {
data: &'a [i32],
dim: usize,
},
Continuous {
data: &'a [f32],
dim: usize,
},
}Expand description
The actions of a batch of environments in a flat buffer: one integer
per environment, or ActionSpace::flat_len floats per environment.
Variants§
Discrete(&'a [i32])
Discrete actions.
MultiDiscrete
Actions of several discrete components, dim each.
Fields
Continuous
Continuous actions, dim elements each.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Actions<'a>
impl<'a> RefUnwindSafe for Actions<'a>
impl<'a> Send for Actions<'a>
impl<'a> Sync for Actions<'a>
impl<'a> Unpin for Actions<'a>
impl<'a> UnsafeUnpin for Actions<'a>
impl<'a> UnwindSafe for Actions<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more