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

Returns the shape of Shape of an array.

Provided methods

Returns 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.

Returns the shape as Vec<i64>.

Implementors