Exemple #1
0
 public float Mean(Tensor x)
 {
     return(Out(C.ReduceMean(In(x), Axis.AllAxes())).ToScalar());
 }
Exemple #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))));
 }
 public Tensor Mean(Tensor x, int dim)
 {
     dim = CorrDim(x.DimCount, dim);
     return(Out(C.ReduceMean(In(x), new Axis(dim))));
 }