Function burn::tensor::activation::softplus
pub fn softplus<const D: usize, B>(
tensor: Tensor<B, D>,
beta: f64,
) -> Tensor<B, D>where
B: Backend,
Expand description
Applies the softplus function
softplus(x_i) = log(1 + exp(\beta x_i)) / \beta