Skip to main content

VectorBuilder

Struct VectorBuilder 

Source
pub struct VectorBuilder<Layers, const INPUT: usize, const CURRENT: usize> { /* private fields */ }

Implementations§

Source§

impl<Layers, const INPUT: usize, const CURRENT: usize> VectorBuilder<Layers, INPUT, CURRENT>

Source

pub const fn flatten(self) -> Self

Source

pub fn dense<const NEXT: usize>( self, ) -> VectorBuilder<<Layers as AppendLayer<DenseLayer<CURRENT, NEXT>, NEXT>>::Output, INPUT, NEXT>
where Layers: AppendLayer<DenseLayer<CURRENT, NEXT>, NEXT>,

Source

pub fn relu( self, ) -> VectorBuilder<<Layers as AppendLayer<ReLU<CURRENT>, CURRENT>>::Output, INPUT, CURRENT>
where Layers: AppendLayer<ReLU<CURRENT>, CURRENT>,

Source

pub fn sigmoid( self, ) -> VectorBuilder<<Layers as AppendLayer<Sigmoid<CURRENT>, CURRENT>>::Output, INPUT, CURRENT>
where Layers: AppendLayer<Sigmoid<CURRENT>, CURRENT>,

Source

pub fn build(self) -> Sequential<INPUT, CURRENT>
where Layers: ModuleChain<INPUT, CURRENT> + Debug + 'static,

Trait Implementations§

Source§

impl<Layers, const INPUT: usize, const CURRENT: usize> Debug for VectorBuilder<Layers, INPUT, CURRENT>
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 CURRENT: usize> Freeze for VectorBuilder<Layers, INPUT, CURRENT>
where Layers: Freeze,

§

impl<Layers, const INPUT: usize, const CURRENT: usize> RefUnwindSafe for VectorBuilder<Layers, INPUT, CURRENT>
where Layers: RefUnwindSafe,

§

impl<Layers, const INPUT: usize, const CURRENT: usize> Send for VectorBuilder<Layers, INPUT, CURRENT>
where Layers: Send,

§

impl<Layers, const INPUT: usize, const CURRENT: usize> Sync for VectorBuilder<Layers, INPUT, CURRENT>
where Layers: Sync,

§

impl<Layers, const INPUT: usize, const CURRENT: usize> Unpin for VectorBuilder<Layers, INPUT, CURRENT>
where Layers: Unpin,

§

impl<Layers, const INPUT: usize, const CURRENT: usize> UnsafeUnpin for VectorBuilder<Layers, INPUT, CURRENT>
where Layers: UnsafeUnpin,

§

impl<Layers, const INPUT: usize, const CURRENT: usize> UnwindSafe for VectorBuilder<Layers, INPUT, CURRENT>
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