SiaNet/Layers/Activations/Selu.cs
/// <summary>
/// Calculate the gradient of this layer function
/// </summary>
/// <param name="outputgrad">The calculated output grad from previous layer.</param>
Calculate the gradient of this layer function
Calculate the gradient of this layer function
public override void Backward(Tensor outputgrad)
        {
            base.Backward(outputgrad);
            Input.Grad = scale * Input.Grad;
        }
public override void Backward ( Tensor outputgrad ) { base . Backward ( outputgrad ) ; Input . Grad = scale * Input . Grad ; }
Calculate the gradient of this layer function
Calculate the gradient of this layer function
outputgrad
Tensor
The calculated output grad from previous layer.
The calculated output grad from previous layer .