ReadOpAttr property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtOpAttr> op_attr, UnsignedInt type, Pointer<Void> data, Size len, Pointer<Size> out)>> ReadOpAttr
getter/setter pair

Read contents of an attribute to data

\paramin op_attr \paramin type Attribute type \paramout data Memory address to save raw content of the attribute \paramin len Number of bytes allowed to store in data \paramout out Number of bytes required to save the data when the call failed, or the real number of bytes saved to data on success

\note Does not support reading graph attributes. Refer to Node_GetSubgraphs.

\since Version 1.17.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtOpAttr> op_attr,
      ffi.UnsignedInt type,
      ffi.Pointer<ffi.Void> data,
      ffi.Size len,
      ffi.Pointer<ffi.Size> out,
    )
  >
>
ReadOpAttr;