finalise_conv3d Subroutine

private subroutine finalise_conv3d(this)

Finalise 3D convolutional layer

Arguments

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

Instance of the 3D convolutional layer


Source Code

  subroutine finalise_conv3d(this)
    !! Finalise 3D convolutional layer
    implicit none

    ! Arguments
    type(conv3d_layer_type), intent(inout) :: this
    !! Instance of the 3D convolutional layer

    if(allocated(this%dil)) deallocate(this%dil)
    if(allocated(this%knl)) deallocate(this%knl)
    if(allocated(this%stp)) deallocate(this%stp)

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

  end subroutine finalise_conv3d