calc_input_shape_concat Function

private function calc_input_shape_concat(this, input_shapes) result(input_shape)

Calculate input shape based on shapes of input layers

Type Bound

concat_layer_type

Arguments

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

Instance of the layer

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

Input shapes

Return Value integer, allocatable, dimension(:)

Calculated input shape


Source Code

  function calc_input_shape_concat(this, input_shapes) result(input_shape)
    !! Calculate input shape based on shapes of input layers
    implicit none

    ! Arguments
    class(concat_layer_type), intent(in) :: this
    !! Instance of the layer
    integer, dimension(:,:), intent(in) :: input_shapes
    !! Input shapes
    integer, allocatable, dimension(:) :: input_shape
    !! Calculated input shape


    input_shape = sum(input_shapes, dim=2)

  end function calc_input_shape_concat