layer_setup Module Function

private module function layer_setup(output_shape, input_shape, verbose) result(layer)

Set up the reshape layer

Arguments

Type IntentOptional Attributes Name
integer, intent(in), dimension(:) :: output_shape

Target output shape (excluding batch dimension)

integer, intent(in), optional, dimension(:) :: input_shape

Input shape (excluding batch dimension)

integer, intent(in), optional :: verbose

Verbosity level

Return Value type(reshape_layer_type)

Instance of the reshape layer


Source Code

     module function layer_setup( &
          output_shape, input_shape, verbose &
     ) result(layer)
       !! Set up the reshape layer
       integer, dimension(:), intent(in) :: output_shape
       !! Target output shape (excluding batch dimension)
       integer, dimension(:), optional, intent(in) :: input_shape
       !! Input shape (excluding batch dimension)
       integer, optional, intent(in) :: verbose
       !! Verbosity level
       type(reshape_layer_type) :: layer
       !! Instance of the reshape layer
     end function layer_setup