ConcatOutput property
\brief Helper function that concatenates OrtValue instances from each loop iteration into a single pre-allocated output buffer.
\note Implementing this function is required for all Loop opset versions.
\paramin this_ptr The OrtLoopKernelHelper instance.
\paramin stream_handle Optional native stream handle that enables asynchronous operations. May be NULL.
\paramin per_iteration_outputs Array of OrtValue instances from each iteration. All OrtValue elements have the
same shape.
\paramin num_per_iteration_outputs The number of OrtValue* elements in the per_iteration_outputs array.
\paramout output The pre-allocated output buffer. Memory is allocated on the device for the EP running the
Loop node.
\paramin output_size_in_bytes The size in bytes of the output buffer. It is guaranteed to be large enough
to hold the concatenated data of each element in per_iteration_outputs.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.24.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtLoopKernelHelper> this_ptr,
ffi.Pointer<ffi.Void> stream_handle,
ffi.Pointer<ffi.Pointer<OrtValue>> per_iteration_outputs,
ffi.Size num_per_iteration_outputs,
ffi.Pointer<ffi.Void> output,
ffi.Size output_size_in_bytes,
)
>
>
ConcatOutput;