ggml_conv_2d_s1_ph function
- @Native<Pointer<
ggml_tensor> Function(Pointer<ggml_context> , Pointer<ggml_tensor> , Pointer<ggml_tensor> )>(ffi.Pointer<ggml_context>, ffi.Pointer<ggml_tensor>, ffi.Pointer<ggml_tensor>)>()
- Pointer<
ggml_context> ctx, - Pointer<
ggml_tensor> a, - Pointer<
ggml_tensor> b
kernel size is a->ne0 x a->ne1
stride is 1
padding is half
example:
a: 3 3 256 256
b: 64 64 256 1
res: 64 64 256 1
used in sam
Implementation
@ffi.Native<
ffi.Pointer<ggml_tensor> Function(
ffi.Pointer<ggml_context>,
ffi.Pointer<ggml_tensor>,
ffi.Pointer<ggml_tensor>,
)
>()
external ffi.Pointer<ggml_tensor> ggml_conv_2d_s1_ph(
ffi.Pointer<ggml_context> ctx,
ffi.Pointer<ggml_tensor> a,
ffi.Pointer<ggml_tensor> b,
);