Forward pass for evaluation
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(network_type), | intent(inout), | target | :: | this |
Instance of network |
|
| class(*), | intent(in), | dimension(:,:) | :: | input |
Input |
Output
module function forward_eval(this, input) result(output) !! Forward pass for evaluation implicit none ! Arguments class(network_type), intent(inout), target :: this !! Instance of network class(*), dimension(:,:), intent(in) :: input !! Input type(array_type), pointer :: output(:,:) !! Output call this%forward(input) output => this%model(this%leaf_vertices(1))%layer%output end function forward_eval