| ggml_pad_ext | R Documentation |
Like ggml_pad, but each dimension can also be padded before its
first element.
ggml_pad_ext(ctx, a, lp = c(0L, 0L, 0L, 0L), rp = c(0L, 0L, 0L, 0L))
ctx |
GGML context |
a |
Input tensor to pad |
lp |
Integer vector of length 4: zeros added before dimensions 0..3 |
rp |
Integer vector of length 4: zeros added after dimensions 0..3 |
Padded tensor with shape [ne0+lp0+rp0, ne1+lp1+rp1, ...]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.