concision_neural/layers/types/
aliases.rs1#[cfg(feature = "alloc")]
6use crate::layers::Activator;
7use crate::layers::{LayerBase, Linear, ReLU, Sigmoid, Tanh};
8#[cfg(feature = "alloc")]
9use alloc::boxed::Box;
10
11#[cfg(feature = "alloc")]
12pub type LayerDyn<A, S, D> = LayerBase<Box<dyn Activator<A, Output = A> + 'static>, S, D>;
14
15pub type LinearLayer<S, D> = LayerBase<Linear, S, D>;
17pub type SigmoidLayer<S, D> = LayerBase<Sigmoid, S, D>;
19pub type TanhLayer<S, D> = LayerBase<Tanh, S, D>;
21pub type ReluLayer<S, D> = LayerBase<ReLU, S, D>;