changeInputFormat function

VARP changeInputFormat(
  1. VARP x,
  2. DimensionFormat format
)

Convert a variable to another format(possibily added before input).

Args:

  • input: A variable.
  • format: The target format.

Returns:

  • A variable. If input is already format, then return input directly, otherwize add a variable before input with format.

Implementation

VARP changeInputFormat(VARP x, DimensionFormat format) =>
    VARP.fromPointer(C.mnn_expr_ChangeInputFormat(x.ptr, format.value));