KernelInfo_GetOutputName property
\brief Get the name of a ::OrtKernelInfo's output.
Used in the CreateKernel callback of an OrtCustomOp to query an output'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 output 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 output'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_GetOutputName;