create_from_onnx_linear_activation Function

public function create_from_onnx_linear_activation(attributes) result(activation)

Create linear activation function from ONNX attributes

Arguments

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

Array of ONNX attributes

Return Value class(base_actv_type), allocatable

Instance of activation type


Source Code

  function create_from_onnx_linear_activation(attributes) result(activation)
    !! Create linear activation function from ONNX attributes
    implicit none

    ! Arguments
    type(onnx_attribute_type), dimension(:), intent(in) :: attributes
    !! Array of ONNX attributes

    class(base_actv_type), allocatable :: activation
    !! Instance of activation type

    allocate(activation, source = linear_actv_type(attributes = attributes))

  end function create_from_onnx_linear_activation