changeInputFormat function
Convert a variable to another format(possibily added before input).
Args:
- input: A variable.
- format: The target format.
Returns:
- A variable. If
inputis alreadyformat, then returninputdirectly, otherwize add a variable beforeinputwithformat.
Implementation
VARP changeInputFormat(VARP x, DimensionFormat format) =>
VARP.fromPointer(C.mnn_expr_ChangeInputFormat(x.ptr, format.value));