size function

VARP size(
  1. VARP input
)

Computes the size of the variable

Args:

  • input: A variable of type Halide_Type_Float or Halide_Type_Int

Returns:

  • A variable. The shape is (), and type is Halide_Type_Int

Implementation

VARP size(VARP input) => VARP.fromPointer(C.mnn_expr_Size(input.ptr));