set_rank_flatten Subroutine

private subroutine set_rank_flatten(this, input_rank, output_rank)

Set the input and output ranks of the layer

Type Bound

flatten_layer_type

Arguments

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

Instance of the layer

integer, intent(in) :: input_rank

Input rank

integer, intent(in) :: output_rank

Output rank


Source Code

  subroutine set_rank_flatten(this, input_rank, output_rank)
    !! Set the input and output ranks of the layer
    implicit none

    ! Arguments
    class(flatten_layer_type), intent(inout) :: this
    !! Instance of the layer
    integer, intent(in) :: input_rank
    !! Input rank
    integer, intent(in) :: output_rank
    !! Output rank

    !---------------------------------------------------------------------------
    ! Set input and output ranks
    !---------------------------------------------------------------------------
    this%input_rank = input_rank
    this%output_rank = output_rank

  end subroutine set_rank_flatten