leaky_relu_reset Subroutine

private pure subroutine leaky_relu_reset(this)

Reset leaky ReLU activation function attributes and variables

Type Bound

leaky_relu_actv_type

Arguments

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

Leaky ReLU activation type


Source Code

  pure subroutine leaky_relu_reset(this)
    !! Reset leaky ReLU activation function attributes and variables
    implicit none

    ! Arguments
    class(leaky_relu_actv_type), intent(inout) :: this
    !! Leaky ReLU activation type

    this%name = "leaky_relu"
    this%scale = 1._real32
    this%threshold = 0._real32
    this%alpha = 0.01_real32
    this%apply_scaling = .false.

  end subroutine leaky_relu_reset