reset_softmax Subroutine

private pure subroutine reset_softmax(this)

Reset softmax activation function attributes and variables

Type Bound

softmax_actv_type

Arguments

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

Softmax activation type


Source Code

  pure subroutine reset_softmax(this)
    !! Reset softmax activation function attributes and variables
    implicit none

    ! Arguments
    class(softmax_actv_type), intent(inout) :: this
    !! Softmax activation type

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

  end subroutine reset_softmax