set_hyperparams_dropblock2d Subroutine

private pure subroutine set_hyperparams_dropblock2d(this, rate, block_size, verbose)

Set hyperparameters for 2D dropblock layer

Type Bound

dropblock2d_layer_type

Arguments

Type IntentOptional Attributes Name
class(dropblock2d_layer_type), intent(inout) :: this

Instance of the 2D dropblock layer

real(kind=real32), intent(in) :: rate

Drop rate

integer, intent(in) :: block_size

Block size

integer, intent(in), optional :: verbose

Verbosity level


Source Code

  pure subroutine set_hyperparams_dropblock2d(this, rate, block_size, verbose)
    !! Set hyperparameters for 2D dropblock layer
    implicit none

    ! Arguments
    class(dropblock2d_layer_type), intent(inout) :: this
    !! Instance of the 2D dropblock layer
    real(real32), intent(in) :: rate
    !! Drop rate
    integer, intent(in) :: block_size
    !! Block size
    integer, optional, intent(in) :: verbose
    !! Verbosity level

    this%name = "dropblock2d"
    this%type = "drop"
    this%input_rank = 3
    this%output_rank = 3

    this%rate = rate
    this%block_size = block_size
    this%half = (this%block_size-1)/2

  end subroutine set_hyperparams_dropblock2d