conv1d

abstract fun conv1d(outChannels: Int, kernelSize: Int, stride: Int = 1, padding: Int = 0, dilation: Int = 1, groups: Int = 1, bias: Boolean = true, 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