C# Class SuperNeuro.Layers.Activations.Softplus

The softplus activation: log(exp(x) + 1).
Inheritance: BaseLayer
Show file Open project: tech-quantum/SuperchargedArray Class Usage Examples

Public Methods

Method Description
Backward ( SuperArray outputgrad ) : void

Calculate the gradient of this layer function

Forward ( SuperArray x ) : void

Forwards the inputs and compute the output

Softplus ( ) : SuperchargedArray

Initializes a new instance of the Softplus class.

Method Details

Backward() public method

Calculate the gradient of this layer function
public Backward ( SuperArray outputgrad ) : void
outputgrad SuperArray The calculated output grad from previous layer.
return void

Forward() public method

Forwards the inputs and compute the output
public Forward ( SuperArray x ) : void
x SuperArray The input SuperArray for this layer.
return void

Softplus() public method

Initializes a new instance of the Softplus class.
public Softplus ( ) : SuperchargedArray
return SuperchargedArray