ggml_conv_2d_dw: Depthwise 2D Convolution (Graph)

View source: R/operations.R

ggml_conv_2d_dwR Documentation

Depthwise 2D Convolution (Graph)

Description

Applies depthwise 2D convolution: each input channel is convolved with its own kernel. Uses the im2col-based path.

Usage

ggml_conv_2d_dw(
  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, s1

Strides along dim 0 and 1 (default 1)

p0, p1

Padding along dim 0 and 1 (default 0)

d0, d1

Dilation along dim 0 and 1 (default 1)

Value

Convolved tensor


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