Forward pass of layer and return output for evaluation
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(base_layer_type), | intent(inout), | target | :: | this |
Instance of the layer |
|
| class(array_type), | intent(in), | dimension(:,:) | :: | input |
Input data |
Output data
module function forward_eval_base(this, input) result(output) !! Forward pass of layer and return output for evaluation implicit none ! Arguments class(base_layer_type), intent(inout), target :: this !! Instance of the layer class(array_type), dimension(:,:), intent(in) :: input !! Input data type(array_type), pointer :: output(:,:) !! Output data call this%forward(input) output => this%output end function forward_eval_base