reset_tanh Subroutine

private pure subroutine reset_tanh(this)

Reset tanh activation function attributes and variables

Type Bound

tanh_actv_type

Arguments

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

Tanh activation type


Source Code

  pure subroutine reset_tanh(this)
    !! Reset tanh activation function attributes and variables
    implicit none

    ! Arguments
    class(tanh_actv_type), intent(inout) :: this
    !! Tanh activation type

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

  end subroutine reset_tanh