Struct gad::net_ext::SquareLoss [−][src]
pub struct SquareLoss<N, Data>(_, _);
The result of SingleOutputNet::add_square_loss
.
Trait Implementations
impl<N: Clone, Data: Clone> Clone for SquareLoss<N, Data>
[src]
impl<N: Clone, Data: Clone> Clone for SquareLoss<N, Data>
[src]fn clone(&self) -> SquareLoss<N, Data>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<N: Debug, Data: Debug> Debug for SquareLoss<N, Data>
[src]
impl<N: Debug, Data: Debug> Debug for SquareLoss<N, Data>
[src]impl<'de, N, Data> Deserialize<'de> for SquareLoss<N, Data> where
N: Deserialize<'de>,
[src]
impl<'de, N, Data> Deserialize<'de> for SquareLoss<N, Data> where
N: Deserialize<'de>,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<Data, Algebra, N> Net<Algebra> for SquareLoss<N, Data> where
Algebra: HasGradientReader + CoreAlgebra<Data, Value = N::Output> + ArrayAlgebra<N::Output> + ArithAlgebra<N::Output> + MatrixAlgebra<N::Output>,
N: Net<Algebra>,
Data: HasDims,
N::Output: HasDims<Dims = Data::Dims>,
Data::Dims: Clone + PartialEq + Debug,
[src]
impl<Data, Algebra, N> Net<Algebra> for SquareLoss<N, Data> where
Algebra: HasGradientReader + CoreAlgebra<Data, Value = N::Output> + ArrayAlgebra<N::Output> + ArithAlgebra<N::Output> + MatrixAlgebra<N::Output>,
N: Net<Algebra>,
Data: HasDims,
N::Output: HasDims<Dims = Data::Dims>,
Data::Dims: Clone + PartialEq + Debug,
[src]type Input = (N::Input, Data)
Input of the network.
type Output = <Algebra as ArrayAlgebra<N::Output>>::Scalar
Output of the network.
type Weights = N::Weights
External representation for the weights of the network.
type GradientInfo = N::GradientInfo
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,
store: &Algebra::GradientReader
) -> Result<Self::Weights>
[src]
&self,
info: Self::GradientInfo,
store: &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>,
impl<N, Data> Serialize for SquareLoss<N, Data> where
N: Serialize,
[src]
impl<N, Data> Serialize for SquareLoss<N, Data> where
N: Serialize,
[src]Auto Trait Implementations
impl<N, Data> RefUnwindSafe for SquareLoss<N, Data> where
Data: RefUnwindSafe,
N: RefUnwindSafe,
impl<N, Data> RefUnwindSafe for SquareLoss<N, Data> where
Data: RefUnwindSafe,
N: RefUnwindSafe,
impl<N, Data> Send for SquareLoss<N, Data> where
Data: Send,
N: Send,
impl<N, Data> Send for SquareLoss<N, Data> where
Data: Send,
N: Send,
impl<N, Data> Sync for SquareLoss<N, Data> where
Data: Sync,
N: Sync,
impl<N, Data> Sync for SquareLoss<N, Data> where
Data: Sync,
N: Sync,
impl<N, Data> Unpin for SquareLoss<N, Data> where
Data: Unpin,
N: Unpin,
impl<N, Data> Unpin for SquareLoss<N, Data> where
Data: Unpin,
N: Unpin,
impl<N, Data> UnwindSafe for SquareLoss<N, Data> where
Data: UnwindSafe,
N: UnwindSafe,
impl<N, Data> UnwindSafe for SquareLoss<N, Data> where
Data: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[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<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,