conv1d

open override fun conv1d(outChannels: Int, kernelSize: Int, stride: Int, padding: Int, dilation: Int, groups: Int, bias: Boolean, id: String, content: CONV1D<T, V>.() -> Unit)(source)

Creates a 1D convolutional layer for processing sequence data.

Parameters

outChannels

Number of output channels/filters

kernelSize

Size of the convolving kernel

stride

Stride of the convolution (default: 1)

padding

Padding added to both sides of the input (default: 0)

dilation

Spacing between kernel elements (default: 1)

groups

Number of groups for grouped convolution (default: 1)

bias

Whether to add a learnable bias (default: true)

id

Optional identifier for the layer

content

Configuration block for weights and bias initialization