pub trait SubModel2 {
type Config;
type Input1;
type Input2;
type Output;
// Required methods
fn build(vb: VarBuilder<'_>, config: Self::Config) -> Self;
fn forward(
&self,
input1: &Self::Input1,
input2: &Self::Input2,
) -> Self::Output;
}Expand description
Required Associated Types§
Required Methods§
Sourcefn build(vb: VarBuilder<'_>, config: Self::Config) -> Self
fn build(vb: VarBuilder<'_>, config: Self::Config) -> Self
Builds SubModel2.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.