1 2 3 4 5 6 7 8 9
use crate::rotta_rs_module::{ exp, ln, Tensor }; #[allow(dead_code)] pub fn softplus(x: &Tensor) -> Tensor { let x = 1.0 + &exp(x); let log = ln(&x); log }