KernelInfoGetAttribute_string property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtKernelInfo> info, Pointer<Char> name, Pointer<Char> out, Pointer<Size> size)>> KernelInfoGetAttribute_string
getter/setter pair

\brief Fetch a string stored as an attribute in the graph node

If out is nullptr, the value of size is set to the true size of the string attribute, and a success status is returned.

If the size parameter is greater than or equal to the actual string attribute's size, the value of size is set to the true size of the string attribute, the provided memory is filled with the attribute's contents, and a success status is returned.

If the size parameter is less than the actual string attribute's size and out is not nullptr, the value of size is set to the true size of the string attribute and a failure status is returned.)

\paramin info ::OrtKernelInfo instance \paramin name Null terminated string of the name of the attribute \paramout out Pointer to memory where the attribute will be stored \paramin,out size See above comments for details

\snippet{doc} snippets.dox OrtStatus Return Value

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtKernelInfo> info,
      ffi.Pointer<ffi.Char> name,
      ffi.Pointer<ffi.Char> out,
      ffi.Pointer<ffi.Size> size,
    )
  >
>
KernelInfoGetAttribute_string;