Transpose property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtScanKernelHelper> this_ptr, Pointer<Size> permutation, Size num_permutation_elems, Pointer<OrtValue> input, Pointer<OrtSyncStream> stream, Pointer<OrtValue> output)>> Transpose
getter/setter pair

\brief Helper function that transposes an OrtValue instance during execution of a Scan kernel.

\note Called for Scan (opset >= 9) when the 'scan_input_axes' or 'scan_output_axes' attributes contain non-zero values. Implementing this function is required for Scan opset versions >= 9.

\paramin this_ptr The OrtScanKernelHelper instance. \paramin permutation An array of integers that defines how the input tensor's axes should be permuted. \paramin num_permutation_elems The number of integer elements in the permutation array. \paramin input The input OrtValue tensor to transpose. \paramin stream An optional OrtSyncStream instance to be used for asynchronous operations. May be NULL. \paramout output The pre-allocated output OrtValue instance into which to store the results of the transpose operation. Must not be released as it is owned by ORT.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.24.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtScanKernelHelper> this_ptr,
      ffi.Pointer<ffi.Size> permutation,
      ffi.Size num_permutation_elems,
      ffi.Pointer<OrtValue> input,
      ffi.Pointer<OrtSyncStream> stream,
      ffi.Pointer<OrtValue> output,
    )
  >
>
Transpose;