pub struct LinearLayer<U, C, P, D, I, const NI: usize, const NO: usize>where
    P: ForwardAll<Input = I, Output = Arr<U, NI>> + BackwardAll<U, LossInput = Arr<U, NI>> + PreTrain<U> + Loss<U>,
    U: Default + Clone + Copy + Send + UnitValue<U>,
    D: Device<U>,
    I: Debug + Send + Sync,
{ /* private fields */ }
Expand description

Linear Layer Implementation

Implementations

Create and return an instance of LinearLayer

Arguments
  • parent - upper layer
  • device - Device object used for neural network computation
  • ui - Callback to generate weight of unit
  • bi - Callback to generate weight of bias

Attempt to create and return an instance of LinearLayer.

Arguments
  • parent - upper layer
  • device - Device object used for neural network computation
  • ui - Callback to generate weight of unit
  • bi - Callback to generate weight of bias
Errors

This function may return the following errors

Trait Implementations

Diff Input to this layer of the neural network
Data inquiry for creating difference information Read more
Back propagation of errors #Arguments Read more
Losses during neural network training
Back propagation of errors #Arguments Read more
Losses during neural network training
Back propagation of errors #Arguments Read more
Losses during neural network training for batch execution
Back propagation of errors #Arguments Read more
Losses during neural network training for batch execution
Back propagation of errors #Arguments Read more
Forward propagation #Arguments Read more
Input to this layer of the neural network for batch execution
Output from this layer of the neural network for batch execution
Error Calculation Read more
Error Calculation Read more
Perform forward propagation required to perform error back propagation #Arguments Read more
Type of object to keep the results of forward propagation needed to perform error back propagation for batch execution. Read more
Forward propagation implementation Read more
Input to this layer of the neural network
Output from this layer of the neural network
Forward propagation #Arguments Read more
Error Calculation Read more
Error Calculation Read more
Load Model Read more
Save Model Read more
Load Model Read more
Save Model Read more
Load Model Read more
Save Model Read more
Load Model Read more
Save Model Read more
Type of object to keep the results of forward propagation needed to perform error back propagation.
Perform forward propagation required to perform error back propagation Read more

Auto Trait Implementations

Blanket Implementations

Adding Layers Read more
Adding Layers Read more
Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Forward propagation (differential application) Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Adding Layers Read more
Adding Layers Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.