Reset piecewise activation function attributes and variables
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(piecewise_actv_type), | intent(inout) | :: | this |
Piecewise activation type |
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