CopyTensors property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtDataTransferImpl> this_ptr, Pointer<Pointer<OrtValue> > src_tensors, Pointer<Pointer<OrtValue> > dst_tensors, Pointer<Pointer<OrtSyncStream> > streams, Size num_tensors)> >
CopyTensors
getter/setter pair
\brief Copy tensors from src_tensors to dst_tensors using the provided streams.
The implementation can use the provided streams to perform asynchronous copies if supported. If a stream is not available, the copy is performed synchronously.
\paramin this_ptr Pointer to the OrtDataTransferImpl instance.
\paramin src_tensors Array of source OrtValue pointers to copy from.
\paramin dst_tensors Array of destination OrtValue pointers to copy to.
\paramin streams Array of OrtSyncStream pointers for the copy operations, if the execution provider is stream
aware. nullptr if it is not.
\paramin num_tensors Number of tensors to copy.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.23.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtDataTransferImpl> this_ptr,
ffi.Pointer<ffi.Pointer<OrtValue>> src_tensors,
ffi.Pointer<ffi.Pointer<OrtValue>> dst_tensors,
ffi.Pointer<ffi.Pointer<OrtSyncStream>> streams,
ffi.Size num_tensors,
)
>
>
CopyTensors;