set_hyperparams_dropblock3d Subroutine

private subroutine set_hyperparams_dropblock3d(this, rate, block_size, verbose)

Set hyperparameters for 3D dropblock layer

Type Bound

dropblock3d_layer_type

Arguments

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

Instance of the 3D 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

  subroutine set_hyperparams_dropblock3d(this, rate, block_size, verbose)
    !! Set hyperparameters for 3D dropblock layer
    implicit none

    ! Arguments
    class(dropblock3d_layer_type), intent(inout) :: this
    !! Instance of the 3D 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 = "dropblock3d"
    this%type = "drop"
    this%input_rank = 4
    this%output_rank = 4

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

  end subroutine set_hyperparams_dropblock3d