set_hyperparams_input Subroutine

private subroutine set_hyperparams_input(this, input_rank, index, use_graph_input, verbose)

Set hyperparameters for an input layer

Type Bound

input_layer_type

Arguments

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

Instance of the input layer

integer, intent(in), optional :: input_rank

Rank of the input data

integer, intent(in), optional :: index

Index of the layer

logical, intent(in), optional :: use_graph_input

Use graph input

integer, intent(in), optional :: verbose

Verbosity level


Source Code

  subroutine set_hyperparams_input( &
       this, &
       input_rank, &
       index, &
       use_graph_input, &
       verbose &
  )
    !! Set hyperparameters for an input layer
    implicit none

    ! Arguments
    class(input_layer_type), intent(inout) :: this
    !! Instance of the input layer
    integer, optional, intent(in) :: input_rank
    !! Rank of the input data
    integer, optional, intent(in) :: index
    !! Index of the layer
    logical, optional, intent(in) :: use_graph_input
    !! Use graph input
    integer, optional, intent(in) :: verbose
    !! Verbosity level

    this%name = "input"
    this%type = "inpt"
    this%input_rank = 0
    if(present(input_rank)) this%input_rank = input_rank
    this%output_rank = this%input_rank
    if(present(index)) this%index = index
    if(present(use_graph_input))then
       this%use_graph_input = use_graph_input
       this%use_graph_output = use_graph_input
    end if

  end subroutine set_hyperparams_input