pub type LayerDyn<'a, T> = LayerBase<Box<dyn Activator<T, Output = T> + 'a>, T>;Expand description
A dynamic instance of the layer using a boxed activator.
Aliased Type§
pub struct LayerDyn<'a, T> {
pub rho: Box<dyn Activator<T, Output = T> + 'a>,
pub params: T,
}Fields§
§rho: Box<dyn Activator<T, Output = T> + 'a>the activation function of the layer
params: Tthe parameters of the layer; often weights and biases