Struct leaf::layers::container::sequential::SequentialConfig [] [src]

pub struct SequentialConfig {
    pub layers: Vec<LayerConfig>,
    pub inputs: Vec<(String, Vec<usize>)>,
    pub force_backward: bool,
}

Specifies configuration parameters for a Sequential Layer.

Fields

Defines the layers of the container via LayerConfigs.

Defines the names and shapes of the input tensors.

The inputs are identified by name so they can be referenced as input tensors in a LayerConfig.

Defines if the container will force every layer to do backpropagation.

If set to false, then the execution of backpropagation is determined automatically according to the network structure and learning rates.

Default: false

Methods

impl SequentialConfig
[src]

Tries to find the output of a previous layer that is usable as in-place output for the n-th layer.

Add layer at the end of the sequential container.

Add a input to the network.

Trait Implementations

impl Debug for SequentialConfig
[src]

Formats the value using the given formatter.

impl Clone for SequentialConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Into<LayerType> for SequentialConfig
[src]

Performs the conversion.

impl Default for SequentialConfig
[src]

Returns the "default value" for a type. Read more