Module containing the activation function setup
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(onnx_create_actv_container), | public, | dimension(:), allocatable | :: | list_of_onnx_activation_creators |
List of activation names and their associated ONNX creation functions |
Function to create an activation function from ONNX attributes
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(onnx_attribute_type), | intent(in), | dimension(:) | :: | attributes |
Array of ONNX attributes |
Resulting activation function
Type containing information needed to create an activation from ONNX
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| procedure(create_from_onnx_activation), | public, | nopass, pointer | :: | create_ptr | => | null() |
Pointer to the specific activation creation function |
| character(len=20), | public | :: | name |
Name of the layer |
Setup the desired activation function
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(*), | intent(in) | :: | input |
Name of the activation function or activation object |
||
| integer, | intent(out), | optional | :: | error |
Error code |
Activation function object
Read activation function from input file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | unit |
Unit number for input file |
||
| integer, | intent(inout), | optional | :: | iline |
Line number |
Activation function object
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | unit |
Unit number for input file |
||
| integer, | intent(inout), | optional | :: | iline |
Indicator for inline reading |
Array of ONNX attributes
Allocate and populate the list of ONNX activation creation functions
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(onnx_create_actv_container), | intent(in), | optional, | dimension(:) | :: | addit_list |