finalise_full Subroutine

private subroutine finalise_full(this)

Finalise fully connected layer

Arguments

Type IntentOptional Attributes Name
type(full_layer_type), intent(inout) :: this

Instance of the fully connected layer


Source Code

  subroutine finalise_full(this)
    !! Finalise fully connected layer
    implicit none

    ! Arguments
    type(full_layer_type), intent(inout) :: this
    !! Instance of the fully connected layer

    if(allocated(this%input_shape)) deallocate(this%input_shape)
    if(allocated(this%output)) deallocate(this%output)
    if(this%z(1)%allocated) call this%z(1)%deallocate()

  end subroutine finalise_full