initialise Function

private function initialise(attributes) result(activation)

Initialise a none (no-op) activation function

Arguments

Type IntentOptional Attributes Name
type(onnx_attribute_type), intent(in), optional, dimension(:) :: attributes

Optional array of ONNX attributes

Return Value type(none_actv_type)

None activation type


Source Code

  function initialise(attributes) result(activation)
    !! Initialise a none (no-op) activation function
    implicit none

    ! Arguments
    type(none_actv_type) :: activation
    !! None activation type
    type(onnx_attribute_type), dimension(:), intent(in), optional :: attributes
    !! Optional array of ONNX attributes


    call activation%reset()
    if(present(attributes))then
       call activation%apply_attributes(attributes)
    end if

  end function initialise