KernelContext_GetOutput property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtKernelContext> context, Size index, Pointer<Int64> dim_values, Size dim_count, Pointer<Pointer<OrtValue> > out)> >
KernelContext_GetOutput
getter/setter pair
\brief Used for custom operators, get an output of a kernel
The function attempts fetches the output of the kernel. If the output is optional and not present, the function returns success and out is set to nullptr.
\paramin context ::OrtKernelContext instance
\paramin index See KernelContext_GetOutputCount for boundaries check.
\paramin dim_values output dimensions
\paramin dim_count number of dimensions
\paramout out a ptr to OrtValue to output otherwise set to 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.Int64> dim_values,
ffi.Size dim_count,
ffi.Pointer<ffi.Pointer<OrtValue>> out,
)
>
>
KernelContext_GetOutput;