| ggml_pool_2d | R Documentation |
Applies 2D pooling operation.
ggml_pool_2d(ctx, a, op, k0, k1, s0 = k0, s1 = k1, p0 = 0, p1 = 0)
ctx |
GGML context |
a |
Input tensor |
op |
Pool operation: GGML_OP_POOL_MAX (0) or GGML_OP_POOL_AVG (1) |
k0 |
Kernel size dimension 0 |
k1 |
Kernel size dimension 1 |
s0 |
Stride dimension 0 (default = k0) |
s1 |
Stride dimension 1 (default = k1) |
p0 |
Padding dimension 0 (default 0) |
p1 |
Padding dimension 1 (default 0) |
Pooled tensor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.