Exemplo n.º 1
0
 public float Max(Tensor x)
 {
     return(Out(C.ReduceMax(In(x), Axis.AllAxes())).ToScalar());
 }
Exemplo n.º 2
0
 public Tensor Max(Tensor x, int dim)
 {
     dim = dim < 0 ? x.DimCount + dim : dim;
     return(Out(C.ReduceMax(In(x), new Axis(dim))));
 }
Exemplo n.º 3
0
        public Tensor Max(Tensor x, int dim)
        {
            dim = CorrDim(x.DimCount, dim);

            return(Out(C.ReduceMax(In(x), new Axis(dim))));
        }