Calculate input shape based on shapes of input layers
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(concat_layer_type), | intent(in) | :: | this |
Instance of the layer |
||
| integer, | intent(in), | dimension(:,:) | :: | input_shapes |
Input shapes |
Calculated input shape
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