Skip to main content

ImageBuilder

Struct ImageBuilder 

Source
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>
where [(); INPUT]:,

Source

pub fn relu( self, ) -> ImageBuilder<<Layers as AppendLayer<ReLU<{ _ }>, { _ }>>::Output, INPUT, C, H, W>
where [(); { _ }]:, Layers: AppendLayer<ReLU<{ _ }>, { _ }>,

Source

pub fn sigmoid( self, ) -> ImageBuilder<<Layers as AppendLayer<Sigmoid<{ _ }>, { _ }>>::Output, INPUT, C, H, W>
where [(); { _ }]:, Layers: AppendLayer<Sigmoid<{ _ }>, { _ }>,

Source

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, { _ }, { _ }>
where [(); { _ }]:, (): ConvGeometryIsValid<H, W, FH, FW, S, P>, Layers: AppendLayer<Conv<W, H, C, FH, FW, OC, S, P>, { _ }>,

Source

pub fn flatten(self) -> VectorBuilder<Layers, INPUT, { _ }>
where [(); { _ }]:,

Source

pub fn build(self) -> Sequential<INPUT, { _ }>
where [(); { _ }]:, Layers: ModuleChain<INPUT, { _ }> + Debug + 'static,

Trait Implementations§

Source§

impl<Layers, const INPUT: usize, const C: usize, const H: usize, const W: usize> Debug for ImageBuilder<Layers, INPUT, C, H, W>
where Layers: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V