Skip to main content

softplus

Function softplus 

Source
pub fn softplus<const D: usize, B: Backend>(x: Tensor<B, D>) -> Tensor<B, D>
Expand description

Applies the SoftPlus function element-wise.

The SoftPlus function is a smooth approximation of the ReLU function.