finalise_dynamic_lno Subroutine

private subroutine finalise_dynamic_lno(this)

Finalise the dynamic Laplace neural operator layer

Arguments

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

Layer instance to release


Source Code

  subroutine finalise_dynamic_lno(this)
    !! Finalise the dynamic Laplace neural operator layer
    implicit none

    ! Arguments
    type(dynamic_lno_layer_type), intent(inout) :: this
    !! Layer instance to release

    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_dynamic_lno