forward_eval_base Module Function

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

Forward pass of layer and return output for evaluation

Arguments

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

Instance of the layer

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

Input data

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

Output data


Source Code

  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