reset_swish Subroutine

private pure subroutine reset_swish(this)

Reset swish activation function attributes and variables

Type Bound

swish_actv_type

Arguments

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

Swish activation type


Source Code

  pure subroutine reset_swish(this)
    !! Reset swish activation function attributes and variables
    implicit none

    ! Arguments
    class(swish_actv_type), intent(inout) :: this
    !! Swish activation type

    this%name = "swish"
    this%scale = 1._real32
    this%threshold = 0._real32
    this%apply_scaling = .false.
    this%beta = 1._real32

  end subroutine reset_swish