KernelContext_GetInput property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtKernelContext> context, Size index, Pointer<Pointer<OrtValue> > out)> >
KernelContext_GetInput
getter/setter pair
\brief Used for custom operators, get an input of a kernel
The function attempts fetches the input of the kernel. If the input is optional and not present, the function returns success and out is set to nullptr.
\paramin context ::OrtKernelContext instance
\paramin index See KernelContext_GetInputCount for boundaries check.
\paramout out OrtValue if the input is present otherwise is set nullptr
\snippet{doc} snippets.dox OrtStatus Return Value
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtKernelContext> context,
ffi.Size index,
ffi.Pointer<ffi.Pointer<OrtValue>> out,
)
>
>
KernelContext_GetInput;