FNN 1.0.0
Toolbox to use NNs in Fortran.
|
Base class for nonlinear activation functions. Do not instanciate. More...
Public Member Functions | |
procedure, pass, public | apply_tangent_linear => nonlinear_apply_tangent_linear |
Applies the TL of the activation function. More... | |
procedure, pass, public | apply_adjoint => nonlinear_apply_adjoint |
Applies the adjoint of the activation function. More... | |
![]() | |
procedure, pass, public | tofile => linear_tofile |
Saves the activation function. More... | |
procedure, pass, public | apply_forward => linear_apply_forward |
Applies and linearises the activation function. More... | |
procedure, pass, public | apply_tangent_linear => linear_apply_tangent_linear |
Applies the TL of the activation function. More... | |
procedure, pass, public | apply_adjoint => linear_apply_adjoint |
Applies the adjoint of the activation function. More... | |
Public Attributes | |
real(rk), dimension(:, :), allocatable, public | z_prime |
The storage for the linearisation. More... | |
![]() | |
integer(ik) | batch_size |
The batch size. More... | |
Base class for nonlinear activation functions. Do not instanciate.
This class only exists to implement the features which are common to all nonlinear activation functions:
procedure, pass, public fnn_activation_nonlinear::nonlinearactivation::apply_adjoint |
Applies the adjoint of the activation function.
Implemented by nonlinear_apply_adjoint.
procedure, pass, public fnn_activation_nonlinear::nonlinearactivation::apply_tangent_linear |
Applies the TL of the activation function.
Implemented by nonlinear_apply_tangent_linear.
real(rk), dimension(:, :), allocatable, public fnn_activation_nonlinear::nonlinearactivation::z_prime |
The storage for the linearisation.
Array of reals with shape (linearactivation::self_size, linearactivation::batch_size).