pub fn activate(x: f32, act: &ActivationType) -> f32
Evaluate activation function act at scalar x.
act
x