ggml_interpolate function
- @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_context> ctx, - Pointer<
ggml_tensor> a, - int ne0,
- int ne1,
- int ne2,
- int ne3,
- 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,
);