KernelInfo_GetInputName property

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

\brief Get the name of a ::OrtKernelInfo's input.

Used in the CreateKernel callback of an OrtCustomOp to query an input's name during kernel/session creation.

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

If the size parameter is greater than or equal to the name 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 is returned.

\paramin info An instance of ::OrtKernelInfo. \paramin index The index of the input name to get. Returns a failure status if out-of-bounds. \paramout out Memory location into which to write the UTF-8 null-terminated string representing the input's name. \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.14

Implementation

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