Node_GetAttributeByName property
\brief Gets the OrtNode's attribute as OrtOpAttr by name.
\paramin node The OrtNode instance.
\paramin attribute_name The name of the attribute
\paramout attribute Output parameter set to the OrtOpAttr instance if an attribute by the given name exists.
For an unset optional attribute, attribute is set to NULL and a non-error status is
returned. For an invalid attribute name, attribute is set to NULL and an error status with
code ORT_NOT_FOUND is returned.
\note ONNX Runtime automatically sets optional (unset) attributes to their default values if the default value is a constant expression that does not depend on other tensor/model characteristics. Conv's 'kernel_shape' attribute is an example of an optional attribute that does not have a constant default value. This function does not provide any unset optional attributes without a constant default value.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.23.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtNode> node,
ffi.Pointer<ffi.Char> attribute_name,
ffi.Pointer<ffi.Pointer<OrtOpAttr>> attribute,
)
>
>
Node_GetAttributeByName;