Skip to main content

conv1d

Function conv1d 

Source
pub fn conv1d(
    x: Tensor<3>,
    weight: Tensor<3>,
    bias: Option<Tensor<1>>,
    options: impl Into<ConvOptions<1>>,
) -> Tensor<3>
Expand description

Applies a 1D convolution.

Supports symmetric and asymmetric padding through ConvOptions. The deprecated PaddedConvOptions is also accepted for compatibility.