CreateOpAttr property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<Char> name, Pointer<Void> data, Int len, UnsignedInt type, Pointer<Pointer<OrtOpAttr> > op_attr)> >
CreateOpAttr
getter/setter pair
\brief: Create attribute of onnxruntime operator
\paramin name Name of the attribute
\paramin data Data content of the attribute
\paramin len Number of bytes stored in data for ORT_OP_ATTR_STRING.
Number of elements if data represents an array (e.g., ORT_OP_ATTR_INTS). Otherwise, set to 1.
\paramin type Data type
\paramout op_attr Attribute that has been created, which must be released by OrtApi::ReleaseOpAttr
\since Version 1.12.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<ffi.Char> name,
ffi.Pointer<ffi.Void> data,
ffi.Int len,
ffi.UnsignedInt type,
ffi.Pointer<ffi.Pointer<OrtOpAttr>> op_attr,
)
>
>
CreateOpAttr;