Trait border_core::Shape [−][src]
pub trait Shape: Clone + Debug { fn shape() -> &'static [usize]; fn squeeze_first_dim() -> bool { ... } fn shape_i64vec() -> Vec<i64> { ... } }
Expand description
Shape of observation or action.
Required methods
fn shape() -> &'static [usize]
fn shape() -> &'static [usize]Returns the shape of Shape of an array.
Provided methods
fn squeeze_first_dim() -> bool
fn squeeze_first_dim() -> boolReturns true if you would like to squeeze the first dimension of the array
before conversion into an numpy array in Python. The first dimension may
correspond to process indices for vectorized environments.
fn shape_i64vec() -> Vec<i64>
fn shape_i64vec() -> Vec<i64>Returns the shape as Vec<i64>.