Function silu

Source
pub fn silu(x: f32) -> f32
Expand description

calculate the sigmoid linear unit to the given f32 number

ยงExamples

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