pub trait RawLayer<F, A>{
type Params<_T>;
// Required methods
fn rho(&self) -> &F;
fn params(&self) -> &Self::Params<A>;
// Provided method
fn forward<X, Y, Z>(&self, input: &X) -> Z
where F: Activator<Y, Output = Z>,
Self::Params<A>: Forward<X, Output = Y> { ... }
}Expand description
The RawLayer trait establishes a common interface for all layers within a given
model. Implementors will need to define the type of parameters they utilize, as well as
provide methods to access both the activation function and the parameters of the layer.
Required Associated Types§
Required Methods§
Provided Methods§
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.