pub fn sigmoid<const D: usize, B>(tensor: Tensor<B, D>) -> Tensor<B, D>where B: Backend,
Applies the sigmoid function.