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