pub trait SubModel1 {
type Config;
type Input;
type Output;
// Required methods
fn build(vb: VarBuilder<'_>, config: Self::Config) -> Self;
fn forward(&self, input: &Self::Input) -> Self::Output;
}Expand description
Neural network model not owing its VarMap internally.
Required Associated Types§
Required Methods§
Sourcefn build(vb: VarBuilder<'_>, config: Self::Config) -> Self
fn build(vb: VarBuilder<'_>, config: Self::Config) -> Self
Builds SubModel1 with VarBuilder and SubModel1::Config.
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.