Realm

oa::ml::matrix::conv_3d

Apply grouped three-dimensional convolution to an NCDHW Matrix. weight uses [output_channels, input_channels / groups, kernel, kernel, kernel] layout and bias uses [output_channels]. The output spatial extent is floor((input + 2 * padding - kernel) / stride) + 1 on every axis. Errors Returns an error unless all inputs are same-runtime F32 matrices, shapes and group divisibility agree, the cubic kernel fits the padded input, every extent fits the shader ABI, or runtime recording fails.

FnRust public API

Function Documentation

pub fn conv_3d( input: &Matrix, weight: &Matrix, bias: &Matrix, stride: usize, padding: usize, groups: usize ) -> Result<Matrix>
Apply grouped three-dimensional convolution to an NCDHW Matrix. weight uses [output_channels, input_channels / groups, kernel, kernel, kernel] layout and bias uses [output_channels]. The output spatial extent is floor((input + 2 * padding - kernel) / stride) + 1 on every axis. Errors Returns an error unless all inputs are same-runtime F32 matrices, shapes and group divisibility agree, the cubic kernel fits the padded input, every extent fits the shader ABI, or runtime recording fails.