layer_setup Module Function

private module function layer_setup(rate, block_size, input_shape, verbose) result(layer)

Set up the 2D dropblock layer

Arguments

Type IntentOptional Attributes Name
real(kind=real32), intent(in) :: rate

Drop rate

integer, intent(in) :: block_size

Block size

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

Input shape

integer, intent(in), optional :: verbose

Verbosity level

Return Value type(dropblock2d_layer_type)

Instance of the 2D dropblock layer


Source Code

     module function layer_setup( &
          rate, block_size, &
          input_shape, &
          verbose ) result(layer)
       !! Set up the 2D dropblock layer
       real(real32), intent(in) :: rate
       !! Drop rate
       integer, intent(in) :: block_size
       !! Block size
       integer, dimension(:), optional, intent(in) :: input_shape
       !! Input shape
       integer, optional, intent(in) :: verbose
       !! Verbosity level
       type(dropblock2d_layer_type) :: layer
       !! Instance of the 2D dropblock layer
     end function layer_setup