Setup a recurrent layer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | hidden_size |
Size of hidden state |
||
| integer, | intent(in), | optional | :: | input_size |
Size of input |
|
| logical, | intent(in), | optional | :: | use_bias |
Whether to use bias |
|
| class(*), | intent(in), | optional | :: | activation |
Activation function |
|
| class(*), | intent(in), | optional | :: | kernel_initialiser |
Activation function, kernel initialiser, and bias initialiser |
|
| class(*), | intent(in), | optional | :: | bias_initialiser |
Activation function, kernel initialiser, and bias initialiser |
|
| integer, | intent(in), | optional | :: | verbose |
Verbosity level |
Instance of the recurrent layer
module function layer_setup( & hidden_size, input_size, use_bias, & activation, & kernel_initialiser, bias_initialiser, verbose & ) result(layer) integer, intent(in) :: hidden_size integer, optional, intent(in) :: input_size logical, optional, intent(in) :: use_bias class(*), optional, intent(in) :: activation class(*), optional, intent(in) :: kernel_initialiser, bias_initialiser integer, optional, intent(in) :: verbose type(recurrent_layer_type) :: layer end function layer_setup