Struct gad::net::InputData[][src]

pub struct InputData<Data, Algebra> where
    Data: HasDims
{ /* fields omitted */ }

A network that takes a single user data as input and returns it (after a dimension check).

Implementations

impl<Data, Algebra> InputData<Data, Algebra> where
    Data: HasDims
[src]

pub fn new(dims: Data::Dims) -> Self[src]

Trait Implementations

impl<Data: Clone, Algebra: Clone> Clone for InputData<Data, Algebra> where
    Data: HasDims,
    Data::Dims: Clone
[src]

impl<Data: Debug, Algebra: Debug> Debug for InputData<Data, Algebra> where
    Data: HasDims,
    Data::Dims: Debug
[src]

impl<Data, Value, Dims, Algebra> Net<Algebra> for InputData<Data, Algebra> where
    Algebra: HasGradientReader + CoreAlgebra<Data, Value = Value>,
    Data: HasDims<Dims = Dims>,
    Dims: Clone + PartialEq + Debug
[src]

type Input = Data

Input of the network.

type Output = Value

Output of the network.

type Weights = ()

External representation for the weights of the network.

type GradientInfo = ()

How to read the gradients of the weights after a backward pass.

Auto Trait Implementations

impl<Data, Algebra> RefUnwindSafe for InputData<Data, Algebra> where
    Algebra: RefUnwindSafe,
    Data: RefUnwindSafe,
    <Data as HasDims>::Dims: RefUnwindSafe

impl<Data, Algebra> Send for InputData<Data, Algebra> where
    Algebra: Send,
    Data: Send,
    <Data as HasDims>::Dims: Send

impl<Data, Algebra> Sync for InputData<Data, Algebra> where
    Algebra: Sync,
    Data: Sync,
    <Data as HasDims>::Dims: Sync

impl<Data, Algebra> Unpin for InputData<Data, Algebra> where
    Algebra: Unpin,
    Data: Unpin,
    <Data as HasDims>::Dims: Unpin

impl<Data, Algebra> UnwindSafe for InputData<Data, Algebra> where
    Algebra: UnwindSafe,
    Data: UnwindSafe,
    <Data as HasDims>::Dims: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<N> CheckNet for N where
    N: Net<Check>, 
[src]

impl<N> EvalNet for N where
    N: Net<Eval>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Data, Algebra, N> SingleOutputNet<Data, Algebra> for N where
    Algebra: HasGradientReader + CoreAlgebra<Data, Value = <N as Net<Algebra>>::Output>,
    N: Net<Algebra>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.