ggml_conv_2d_direct: Direct 2D Convolution (Graph)

View source: R/operations.R

ggml_conv_2d_directR Documentation

Direct 2D Convolution (Graph)

Description

Applies 2D convolution using the direct algorithm (no im2col).

Usage

ggml_conv_2d_direct(
  ctx,
  a,
  b,
  s0 = 1L,
  s1 = 1L,
  p0 = 0L,
  p1 = 0L,
  d0 = 1L,
  d1 = 1L
)

Arguments

ctx

GGML context

a

Convolution kernel tensor

b

Input data tensor

s0

Stride dimension 0 (default 1)

s1

Stride dimension 1 (default 1)

p0

Padding dimension 0 (default 0)

p1

Padding dimension 1 (default 0)

d0

Dilation dimension 0 (default 1)

d1

Dilation dimension 1 (default 1)

Value

Convolved tensor


ggmlR documentation built on July 14, 2026, 1:08 a.m.