softplus function

Tensor<Vector> softplus(
  1. Tensor<Vector> v
)

Implementation

Tensor<Vector> softplus(Tensor<Vector> v) {
  return vectorLog(addScalar(vectorExp(v), 1.0));
}