logo

Trait neuronika::Convolve[][src]

pub trait Convolve<Inp, Ker, Pad: PaddingMode> {
    type Output;
    fn convolve(
        input: Inp,
        kernel: Ker,
        stride: &[usize],
        dilation: &[usize],
        padding: &[usize],
        padding_mode: Pad
    ) -> Self::Output; }
Expand description

Convolution.

Associated Types

The type of the convolution’s result. See the differentiability arithmetic for more details.

Required methods

Applies a n-dimensional convolution with the given parameters. n can be either 1, 2 or 3.

Implementors