pub struct ImageBuilder<Layers, const INPUT: usize, const C: usize, const H: usize, const W: usize> { /* private fields */ }Implementations§
Source§impl<Layers, const INPUT: usize, const C: usize, const H: usize, const W: usize> ImageBuilder<Layers, INPUT, C, H, W>
impl<Layers, const INPUT: usize, const C: usize, const H: usize, const W: usize> ImageBuilder<Layers, INPUT, C, H, W>
pub fn relu( self, ) -> ImageBuilder<<Layers as AppendLayer<ReLU<{ _ }>, { _ }>>::Output, INPUT, C, H, W>
pub fn sigmoid( self, ) -> ImageBuilder<<Layers as AppendLayer<Sigmoid<{ _ }>, { _ }>>::Output, INPUT, C, H, W>
pub fn conv<const OC: usize, const FH: usize, const FW: usize, const S: usize, const P: usize>( self, ) -> ImageBuilder<<Layers as AppendLayer<Conv<W, H, C, FH, FW, OC, S, P>, { _ }>>::Output, INPUT, OC, { _ }, { _ }>
pub fn flatten(self) -> VectorBuilder<Layers, INPUT, { _ }>
pub fn build(self) -> Sequential<INPUT, { _ }>
Trait Implementations§
Auto Trait Implementations§
impl<Layers, const INPUT: usize, const C: usize, const H: usize, const W: usize> Freeze for ImageBuilder<Layers, INPUT, C, H, W>where
Layers: Freeze,
impl<Layers, const INPUT: usize, const C: usize, const H: usize, const W: usize> RefUnwindSafe for ImageBuilder<Layers, INPUT, C, H, W>where
Layers: RefUnwindSafe,
impl<Layers, const INPUT: usize, const C: usize, const H: usize, const W: usize> Send for ImageBuilder<Layers, INPUT, C, H, W>where
Layers: Send,
impl<Layers, const INPUT: usize, const C: usize, const H: usize, const W: usize> Sync for ImageBuilder<Layers, INPUT, C, H, W>where
Layers: Sync,
impl<Layers, const INPUT: usize, const C: usize, const H: usize, const W: usize> Unpin for ImageBuilder<Layers, INPUT, C, H, W>where
Layers: Unpin,
impl<Layers, const INPUT: usize, const C: usize, const H: usize, const W: usize> UnsafeUnpin for ImageBuilder<Layers, INPUT, C, H, W>where
Layers: UnsafeUnpin,
impl<Layers, const INPUT: usize, const C: usize, const H: usize, const W: usize> UnwindSafe for ImageBuilder<Layers, INPUT, C, H, W>where
Layers: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more