ggml_interpolate function

  1. @Native<Pointer<ggml_tensor> Function(Pointer<ggml_context>, Pointer<ggml_tensor>, Int64, Int64, Int64, Int64, Uint32)>(ffi.Pointer<ggml_context>, ffi.Pointer<ggml_tensor>, ffi.Int64, ffi.Int64, ffi.Int64, ffi.Int64, ffi.Uint32)>()
Pointer<ggml_tensor> ggml_interpolate(
  1. Pointer<ggml_context> ctx,
  2. Pointer<ggml_tensor> a,
  3. int ne0,
  4. int ne1,
  5. int ne2,
  6. int ne3,
  7. int mode,
)

Up- or downsamples the input to the specified size. 2D scale modes (eg. bilinear) are applied to the first two dimensions.

Implementation

@ffi.Native<
  ffi.Pointer<ggml_tensor> Function(
    ffi.Pointer<ggml_context>,
    ffi.Pointer<ggml_tensor>,
    ffi.Int64,
    ffi.Int64,
    ffi.Int64,
    ffi.Int64,
    ffi.Uint32,
  )
>()
external ffi.Pointer<ggml_tensor> ggml_interpolate(
  ffi.Pointer<ggml_context> ctx,
  ffi.Pointer<ggml_tensor> a,
  int ne0,
  int ne1,
  int ne2,
  int ne3,
  int mode,
);