Set up the dropout layer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(in) | :: | rate |
Drop rate |
||
| integer, | intent(in) | :: | num_masks |
Number of unique masks |
||
| integer, | intent(in), | optional, | dimension(:) | :: | input_shape |
Input shape |
Instance of the dropout layer
module function layer_setup( & rate, num_masks, & input_shape) result(layer) !! Set up the dropout layer integer, intent(in) :: num_masks !! Number of unique masks real(real32), intent(in) :: rate !! Drop rate integer, dimension(:), optional, intent(in) :: input_shape !! Input shape type(dropout_layer_type) :: layer !! Instance of the dropout layer end function layer_setup