mean

fun mean(a: Tensor<*, *>, dim: Int? = null): Tensor<*, *>(source)

Mean of all elements, or mean along a dimension.