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
Trait Implementations
impl<Data: Clone, Algebra: Clone> Clone for InputData<Data, Algebra> where
Data: HasDims,
Data::Dims: Clone,
[src]
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: 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]
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.
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 InputData<Data, Algebra> where
Algebra: RefUnwindSafe,
Data: RefUnwindSafe,
<Data as HasDims>::Dims: RefUnwindSafe,
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> 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> 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> 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,
impl<Data, Algebra> UnwindSafe for InputData<Data, Algebra> where
Algebra: UnwindSafe,
Data: UnwindSafe,
<Data as HasDims>::Dims: 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,