Skip to main content

LayerDims

Trait LayerDims 

Source
pub trait LayerDims {
    const INPUT: usize;
    const OUTPUT: usize;
}

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<const IN: usize, const OUT: usize> LayerDims for DenseLayer<IN, OUT>

Source§

const INPUT: usize = IN

Source§

const OUTPUT: usize = OUT

Source§

impl<const IW: usize, const IH: usize, const IC: usize, const FH: usize, const FW: usize, const OC: usize, const S: usize, const P: usize> LayerDims for Conv<IW, IH, IC, FH, FW, OC, S, P>
where [(); { _ }]:, (): ConvGeometryIsValid<IH, IW, FH, FW, S, P>,

Source§

impl<const N: usize> LayerDims for Flatten<N>

Source§

impl<const N: usize> LayerDims for ReLU<N>

Source§

impl<const N: usize> LayerDims for Sigmoid<N>