Differentiable approximation of the Relu function.
Tensor<Vector> softplus(Tensor<Vector> v) { return vectorLog(addScalar(vectorExp(v), 1.0)); }