pub fn relu_smooth_derivative(x: f32) -> f32
Expand description

Calculates the derivative of the smooth ReLU activation function for a given input.

Arguments

  • x - A 32-bit float input value.

Example

let x = 0.5;
let result = cgl_rs::math::activations::relu_smooth_derivative(x);
println!("relu_smooth_derivative({}) = {}", x, result);