concision_core/activate/impls/impl_linear.rs
1/*
2 Appellation: linear <module>
3 Contrib: FL03 <jo3mccain@icloud.com>
4*/
5
6impl<T> crate::activate::LinearActivation for &T
7where
8 T: Clone + Default,
9{
10 type Output = T;
11
12 fn linear(self) -> Self::Output {
13 self.clone()
14 }
15
16 fn linear_derivative(self) -> Self::Output {
17 <T>::default()
18 }
19}