KernelInfo_GetOperatorDomain property

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

\brief Get the graph node's operator domain from ::OrtKernelInfo.

If out is nullptr, the value of size is set to the size of the operator domain string (including null-terminator), and a success status is returned.

If the size parameter is greater than or equal to the string's size and out is not nullptr, the value of size is set to the true size of the string (including null-terminator), the provided memory is filled with the string's contents, and a success status is returned.

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

\paramin info An instance of ::OrtKernelInfo. \paramout out Memory location into which to write the UTF-8 null-terminated string representing the operator domain. \paramin,out size Pointer to the size of the out buffer. See above comments for details.

\snippet{doc} snippets.dox OrtStatus Return Value \since Version 1.24

Implementation

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