pub struct Linear;
Expand description

Linear activation function.

Trait Implementations

The activation function.
The gradient of the activation function.
The gradient of the activation function calculated using the output of the function. Calculates f’(x) given f(x) as an input Read more
The inverse of the activation function.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. 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.

Applies the activation function to each element of the input

The gradient of the output of this layer with respect to its input
The gradient of the output of this layer with respect to its parameters
The default value of the parameters of this layer before training
The shape of the parameters used by this layer
The number of parameters used by this layer
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. 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.