layer_setup Module Function

private module function layer_setup(activation, input_shape, verbose) result(layer)

Set up the activation layer

Arguments

Type IntentOptional Attributes Name
class(*), intent(in) :: activation

Activation function

integer, intent(in), optional, dimension(:) :: input_shape

Input shape

integer, intent(in), optional :: verbose

Verbosity level

Return Value type(actv_layer_type)

Instance of the activation layer


Source Code

     module function layer_setup( &
          activation, &
          input_shape, &
          verbose &
     ) result(layer)
       !! Set up the activation layer
       class(*), intent(in) :: activation
       !! Activation function
       integer, dimension(:), optional, intent(in) :: input_shape
       !! Input shape
       integer, optional, intent(in) :: verbose
       !! Verbosity level
       type(actv_layer_type) :: layer
       !! Instance of the activation layer
     end function layer_setup