MLResample2dOptions constructor

MLResample2dOptions({
  1. MLInterpolationMode? mode,
  2. Iterable<double>? scales,
  3. Iterable<int>? sizes,
  4. Iterable<int>? axes,
})

Implementation

factory MLResample2dOptions(
        {MLInterpolationMode? mode,
        Iterable<double>? scales,
        Iterable<int>? sizes,
        Iterable<int>? axes}) =>
    MLResample2dOptions._(
        mode: mode?.value ?? MLInterpolationMode.nearestNeighbor.value,
        scales: scales ?? undefined,
        sizes: sizes ?? undefined,
        axes: axes ?? undefined);