Get the attributes of the layer (for ONNX export)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(base_layer_type), | intent(in) | :: | this |
Instance of the layer |
Attributes of the layer
module function get_attributes_base(this) result(attributes) !! Get the attributes of the layer (for ONNX export) implicit none ! Arguments class(base_layer_type), intent(in) :: this !! Instance of the layer type(onnx_attribute_type), allocatable, dimension(:) :: attributes !! Attributes of the layer ! Allocate attributes array allocate(attributes(0)) ! attributes(0)%name = this%name ! attributes(0)%val = this%get_type_name() ! attributes(0)%type = "" end function get_attributes_base