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]
impl<Data, Algebra> WeightData<Data, Algebra>
[src]Trait Implementations
impl<Data: Clone, Algebra: Clone> Clone for WeightData<Data, Algebra>
[src]
impl<Data: Clone, Algebra: Clone> Clone for WeightData<Data, Algebra>
[src]fn clone(&self) -> WeightData<Data, Algebra>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Data: Debug, Algebra: Debug> Debug 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]
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.
fn eval_with_gradient_info(
&self,
graph: &mut Algebra,
_input: Self::Input
) -> Result<(Self::Output, Self::GradientInfo)>
[src]
&self,
graph: &mut Algebra,
_input: Self::Input
) -> Result<(Self::Output, Self::GradientInfo)>
fn get_weights(&self) -> Self::Weights
[src]
fn set_weights(&mut self, weights: Self::Weights) -> Result<()>
[src]
fn update_weights(&mut self, delta: Self::Weights) -> Result<()>
[src]
fn read_weight_gradients(
&self,
info: Self::GradientInfo,
reader: &Algebra::GradientReader
) -> Result<Self::Weights>
[src]
&self,
info: Self::GradientInfo,
reader: &Algebra::GradientReader
) -> Result<Self::Weights>
fn eval(&self, graph: &mut Algebra, input: Self::Input) -> Result<Self::Output>
[src]
fn map<F, O>(self, f: F) -> Map<Self, F> where
Self: Sized,
F: Fn(&mut Algebra, Self::Output) -> Result<O>,
[src]
Self: Sized,
F: Fn(&mut Algebra, Self::Output) -> Result<O>,
fn using<N>(self, net: N) -> Using<Self, N> where
Self: Sized,
N: Net<Algebra, Input = ()>,
[src]
Self: Sized,
N: Net<Algebra, Input = ()>,
fn then<N>(self, net: N) -> Then<Self, N> where
Self: Sized,
N: Net<Algebra, Input = Self::Output>,
[src]
Self: Sized,
N: Net<Algebra, Input = Self::Output>,
fn and<N>(self, net: N) -> (Self, N) where
Self: Sized,
N: Net<Algebra>,
[src]
Self: Sized,
N: Net<Algebra>,
Auto Trait Implementations
impl<Data, Algebra> RefUnwindSafe for WeightData<Data, Algebra> where
Algebra: RefUnwindSafe,
Data: RefUnwindSafe,
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> 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> 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> Unpin for WeightData<Data, Algebra> where
Algebra: Unpin,
Data: Unpin,
impl<Data, Algebra> UnwindSafe for WeightData<Data, Algebra> where
Algebra: UnwindSafe,
Data: UnwindSafe,
impl<Data, Algebra> UnwindSafe for WeightData<Data, Algebra> where
Algebra: UnwindSafe,
Data: UnwindSafe,
Blanket Implementations
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<Data, Algebra, N> SingleOutputNet<Data, Algebra> for N where
Algebra: HasGradientReader + CoreAlgebra<Data, Value = <N as Net<Algebra>>::Output>,
N: Net<Algebra>,
[src]fn add_square_loss(self) -> SquareLoss<Self, Data> where
Self: Sized,
[src]
Self: Sized,