Struct leaf::layers::activation::tanh::TanH [] [src]

pub struct TanH;

TanH Activation Layer

Trait Implementations

impl Debug for TanH
[src]

Formats the value using the given formatter.

impl Clone for TanH
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<B: IBackend + Tanh<f32>> ILayer<B> for TanH
[src]

Returns the exact number of output blobs required by the layer, or None if no exact number is required. Read more

Returns the exact number of input blobs required by the layer, or None if no exact number is required. Read more

Adjust to shapes of the output blobs to fit the shapes of the input blobs. Read more

Initialize the layer for computation. Read more

Adjust size of shared workspace. Read more

Compute the [feedforward][1] layer output using the provided Backend. [1]: https://en.wikipedia.org/wiki/Feedforward_neural_network Read more

Compute the [backpropagation][1] input gradient using the provided backend. [1]: https://en.wikipedia.org/wiki/Backpropagation Read more

Compute the [backpropagation][1] parameters gradient using the provided backend. [1]: https://en.wikipedia.org/wiki/Backpropagation Read more

Synchronize the blobs before doing a forward or backward operation. Read more

Return whether "anonymous" output blobs are created automatically for the layer. Read more

Returns the minimum number of output blobs required by the layer, or 0 if no minimum number is required. Read more

Return whether weight blobs are created automatically for the layer. Read more

Return whether to allow force_backward for a given input blob index. Read more

Return wether a simple native backend should be used to [sync][1] instead of the default backend. [1]: #method.sync Read more

Return wether the computations of a layer should be done in-place (the output will be written where the input was read from). Read more

Return wether the layer is a container. Read more

Return the associated loss weight for a given output blob index. Read more

Return the input tensors of the layer. Read more

Return the gradients of the input tensors of the layer. Read more

Return the output tensors of the layer. Read more

Return the gradients of the output tensors of the layer. Read more

Return the learnable weights inside the layer. Read more

Return the gradients for the learnable weights inside the layer. Read more

Return the names of the learnable weights inside the layer. Read more

Return the learning rates for the learnable weights inside the layer. Read more

impl<B: IBackend + Tanh<f32>> ComputeOutput<f32, B> for TanH
[src]

Compute output for given input and write them into output_data.

impl<B: IBackend + Tanh<f32>> ComputeInputGradient<f32, B> for TanH
[src]

Compute gradients with respect to the inputs and write them into input_gradients.

impl<B: IBackend + Tanh<f32>> ComputeParametersGradient<f32, B> for TanH
[src]

Compute gradients with respect to the parameters and write them into parameters_gradients.