vectorMish function

Tensor<Vector> vectorMish(
  1. Tensor<Vector> x
)

Mathematical operation for the Mish function on a vector.

Built by composing other autograd operations. The backward pass is handled automatically.

Implementation

Tensor<Vector> vectorMish(Tensor<Vector> x) {
  return elementWiseMultiply(x, vectorTanh(softplus(x)));
}