nullify_graph_base Module Subroutine

module subroutine nullify_graph_base(this)

Nullify the forward pass data of the layer to free memory

Arguments

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

Instance of the layer


Source Code

  module subroutine nullify_graph_base(this)
    !! Nullify the forward pass data of the layer to free memory
    implicit none

    ! Arguments
    class(base_layer_type), intent(inout) :: this
    !! Instance of the layer

    ! Local variables
    integer :: i, j
    !! Loop indices

    do i = 1, size(this%output,1)
       do j = 1, size(this%output,2)
          call this%output(i,j)%nullify_graph()
       end do
    end do

  end subroutine nullify_graph_base