softsign

Function softsign 

pub fn softsign<const D: usize, B>(tensor: Tensor<B, D>) -> Tensor<B, D>
where B: Backend,
Expand description

Applies the Softsign function element-wise.

softsign(x_i) = x_i / (1 + |x_i|)