interp function

VARP interp(
  1. List<VARP> xs,
  2. double widthScale,
  3. double heightScale,
  4. int outputWidth,
  5. int outputHeight,
  6. int resizeType,
  7. bool alignCorners,
)

Implementation

VARP interp(
  List<VARP> xs,
  double widthScale,
  double heightScale,
  int outputWidth,
  int outputHeight,
  int resizeType,
  bool alignCorners,
) {
  final xsPtr = xs.toNativeVec();
  final rval = VARP.fromPointer(
    C.mnn_expr_Interp(
      xsPtr.ptr,
      widthScale,
      heightScale,
      outputWidth,
      outputHeight,
      resizeType,
      alignCorners,
    ),
  );
  xsPtr.dispose();
  return rval;
}