reset_piecewise Subroutine

private pure subroutine reset_piecewise(this)

Reset piecewise activation function attributes and variables

Type Bound

piecewise_actv_type

Arguments

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

Piecewise activation type


Source Code

  pure subroutine reset_piecewise(this)
    !! Reset piecewise activation function attributes and variables
    implicit none

    ! Arguments
    class(piecewise_actv_type), intent(inout) :: this
    !! Piecewise activation type

    this%name = "piecewise"
    this%scale = 1._real32
    this%threshold = 0._real32
    this%apply_scaling = .false.
    this%gradient = 0.1_real32
    this%limit = 1._real32

  end subroutine reset_piecewise