pub trait SubModel2 {
    type Config;
    type Input1;
    type Input2;
    type Output;
    fn build(var_store: &VarStore, config: Self::Config) -> Self;
fn clone_with_var_store(&self, var_store: &VarStore) -> Self;
fn forward(
        &self,
        input1: &Self::Input1,
        input2: &Self::Input2
    ) -> Self::Output; }
Expand description

Neural network model that can be initialized with VarStore and configuration.

The difference from SubModel is that this trait takes two inputs.

Associated Types

Configuration from which SubModel2 is constructed.

Input of the SubModel2.

Input of the SubModel2.

Output of the SubModel2.

Required methods

Clones SubModel2 with VarStore.

A generalized forward function.

Implementors