mean method

Tensor mean()

Collapses the entire tensor into a 1x1 Tensor containing the mean

Implementation

Tensor mean() {
  final h = engine.meanTensor(this.handle);
  return Tensor._raw(h, [1, 1]);
}