set_hyperparams_concat Subroutine

private subroutine set_hyperparams_concat(this, input_layer_ids, input_rank, verbose)

Set the hyperparameters for concatenate layer

Type Bound

concat_layer_type

Arguments

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

Instance of the concatenate layer

integer, intent(in), dimension(:) :: input_layer_ids

Input layer IDs

integer, intent(in) :: input_rank

Input rank

integer, intent(in), optional :: verbose

Verbosity level


Source Code

  subroutine set_hyperparams_concat( &
       this, &
       input_layer_ids, &
       input_rank, &
       verbose &
  )
    !! Set the hyperparameters for concatenate layer
    implicit none

    ! Arguments
    class(concat_layer_type), intent(inout) :: this
    !! Instance of the concatenate layer
    integer, dimension(:), intent(in) :: input_layer_ids
    !! Input layer IDs
    integer, intent(in) :: input_rank
    !! Input rank
    integer, optional, intent(in) :: verbose
    !! Verbosity level


    this%name = "concatenate"
    this%type = "merg"
    this%merge_mode = 2 ! concatenate mode
    this%input_layer_ids = input_layer_ids
    this%input_rank = input_rank
    this%output_rank = input_rank

  end subroutine set_hyperparams_concat