forward_eval Module Function

module function forward_eval(this, input) result(output)

Forward pass for evaluation

Arguments

Type IntentOptional Attributes Name
class(network_type), intent(inout), target :: this

Instance of network

class(*), intent(in), dimension(:,:) :: input

Input

Return Value type(array_type), pointer, (:,:)

Output


Source Code

  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