rank function
Returns the rank of a variable.
Returns a 0-D int32 variable representing the rank of input.
Note: The rank of a variable is not the same as the rank of a matrix.
It's the number of indices required to uniquely select each element of the variable.
It's also known as "order", "degree", or "ndims."
Args:
- input: A variable.
Returns:
- A 0-D variable of type Halide_Type_Int
Implementation
VARP rank(VARP input) => VARP.fromPointer(C.mnn_expr_Rank(input.ptr));