Struct leaf::layers::utility::reshape::ReshapeConfig [] [src]

pub struct ReshapeConfig {
    pub shape: Vec<usize>,
}

Specifies configuration parameters for a Reshape Layer.

Fields

shape

The target shape that the input should assume.

Preceding dimensions are treated as independent inputs

Defaults to 1

Methods

impl ReshapeConfig

fn of_shape(shape: &[usize]) -> ReshapeConfig

Create a ReshapeConfig that describes a Reshape layer with a provided shape.

Trait Implementations

impl Into<LayerType> for ReshapeConfig

fn into(self) -> LayerType

Derived Implementations

impl Clone for ReshapeConfig

fn clone(&self) -> ReshapeConfig

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for ReshapeConfig

fn fmt(&self, __arg_0: &mut Formatter) -> Result