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

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

Specifies configuration parameters for a Sequential Layer.

Fields

layers: Vec<LayerConfig>

Defines the layers of the container via LayerConfigs.

inputs: Vec<(String, Vec<usize>)>

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.

force_backward: bool

Defines if the container will force every layer to do [backpropagation][1]. [1]: https://en.wikipedia.org/wiki/Backpropagation

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

Default: false

Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.