pub trait Layer<I> {
type Output;
// Required method
fn call(&self, input: I) -> Self::Output;
}Expand description
A neural network layer: something callable on an input I, producing Output.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".