Backends/SiaNet.Backend.TensorSharp/VarOps.cs
/// <summary>
/// Determines the maximun of the parameters.
/// </summary>
/// <param name="dimension">The dimension.</param>
/// <returns>TVar.</returns>
Determines the maximun of the parameters.
Determines the maximun of the parameters .
public static Variable Max(Variable t, int dimension)
        {
            if (dimension < 0)
            {
                dimension = t.Shape.Length - dimension;
            }
            return new Variable(new UnaryTensorExpression(t.Expression, (result, src) => Ops.Max(result, src, dimension)));
        }
public static Variable Max ( Variable t , int dimension ) { if ( dimension < 0 ) { dimension = t . Shape . Length - dimension ; } return new Variable ( new UnaryTensorExpression ( t . Expression , ( result , src ) => Ops . Max ( result , src , dimension ) ) ) ; }
Determines the maximun of the parameters.
Determines the maximun of the parameters .
None
t
Variable
dimension
int
None