public float Mean(Tensor x) { return(Out(C.ReduceMean(In(x), Axis.AllAxes())).ToScalar()); }
public Tensor Mean(Tensor x, int dim) { dim = dim < 0 ? x.DimCount + dim : dim; return(Out(C.ReduceMean(In(x), new Axis(dim)))); }
public Tensor Mean(Tensor x, int dim) { dim = CorrDim(x.DimCount, dim); return(Out(C.ReduceMean(In(x), new Axis(dim)))); }