Struct gad::net::WeightData[][src]

pub struct WeightData<Data, Algebra> { /* fields omitted */ }

A network that takes no inputs and always returns the weights.

Implementations

impl<Data, Algebra> WeightData<Data, Algebra>[src]

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

pub fn get(&self) -> &Data[src]

Trait Implementations

impl<Data: Clone, Algebra: Clone> Clone for WeightData<Data, Algebra>[src]

impl<Data: Debug, Algebra: Debug> Debug for WeightData<Data, Algebra>[src]

impl<Data, Value, Algebra> Net<Algebra> for WeightData<Data, Algebra> where
    Algebra: HasGradientReader + CoreAlgebra<Data, Value = Value>,
    Data: Clone + HasDims + AddAssign,
    Value: HasGradientId,
    Data::Dims: Clone + PartialEq + Debug,
    Algebra::GradientReader: GradientReader<Value::GradientId, Data>, 
[src]

type Input = ()

Input of the network.

type Output = Value

Output of the network.

type Weights = Data

External representation for the weights of the network.

type GradientInfo = Value::GradientId

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

Auto Trait Implementations

impl<Data, Algebra> RefUnwindSafe for WeightData<Data, Algebra> where
    Algebra: RefUnwindSafe,
    Data: RefUnwindSafe

impl<Data, Algebra> Send for WeightData<Data, Algebra> where
    Algebra: Send,
    Data: Send

impl<Data, Algebra> Sync for WeightData<Data, Algebra> where
    Algebra: Sync,
    Data: Sync

impl<Data, Algebra> Unpin for WeightData<Data, Algebra> where
    Algebra: Unpin,
    Data: Unpin

impl<Data, Algebra> UnwindSafe for WeightData<Data, Algebra> where
    Algebra: UnwindSafe,
    Data: 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> 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.