ggml_im2col method
Pointer<ggml_tensor>
ggml_im2col(
- Pointer<
ggml_context> ctx, - Pointer<
ggml_tensor> a, - Pointer<
ggml_tensor> b, - int s0,
- int s1,
- int p0,
- int p1,
- int d0,
- int d1,
- bool is_2D,
- int dst_type,
im2col converts data into a format that effectively results in a convolution when combined with matrix multiplication
Implementation
ffi.Pointer<ggml_tensor> ggml_im2col(
ffi.Pointer<ggml_context> ctx,
ffi.Pointer<ggml_tensor> a,
ffi.Pointer<ggml_tensor> b,
int s0,
int s1,
int p0,
int p1,
int d0,
int d1,
bool is_2D,
int dst_type,
) {
return _ggml_im2col(
ctx,
a,
b,
s0,
s1,
p0,
p1,
d0,
d1,
is_2D,
dst_type,
);
}