Set up the reshape layer
| Type | Intent | Optional | 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 |
Instance of the reshape layer
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