Struct relearn::torch::seq_modules::Stacked[][src]

pub struct Stacked<'a, T, U> {
    pub seq: T,
    pub activation: Option<Func<'a>>,
    pub top: U,
}
Expand description

A module stacked on top of a sequence.

Fields

seq: T

The sequence module.

activation: Option<Func<'a>>

An optional activation function in between

top: U

A module applied to the sequence module outputs.

Implementations

Trait Implementations

Whether cuDNN supports second derivatives of this module.

Formats the value using the given formatter. Read more

Internal state of the module.

Construct an initial state for the start of a new sequence.

Apply one step of the module. Read more

Apply the network over multiple sequences arranged in series one after another. Read more

Apply the network over multiple sequences packed together in heterogeneous batches. Read more

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