Function activation_functions::f64::relu[][src]

pub fn relu(x: f64) -> f64
Expand description

calculate the rectified linear unit to the given f64 number

Examples

let x:f64 = 0.5;
let answer:f64 = relu(x);
 
println!("relu({}) => {}",x,answer);