KernelInfo_GetNodeName property
\brief Get the graph node name from ::OrtKernelInfo.
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.
Can be used in a custom operator's CreateKernel callback to get the name of the operator's node name in the graph.
\paramin info An instance of ::OrtKernelInfo.
\paramout out Memory location into which to write the UTF-8 null-terminated string representing the 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.15
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtKernelInfo> info,
ffi.Pointer<ffi.Char> out,
ffi.Pointer<ffi.Size> size,
)
>
>
KernelInfo_GetNodeName;