Contains helper functions for a Scan OrtKernelImpl created via OrtEpApi::CreateScanKernel.
More...
#include <onnxruntime_ep_c_api.h>
Contains helper functions for a Scan OrtKernelImpl created via OrtEpApi::CreateScanKernel.
- Since
- Version 1.24.
◆ Transpose()
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.
- Parameters
-
| [in] | this_ptr | The OrtScanKernelHelper instance. |
| [in] | permutation | An array of integers that defines how the input tensor's axes should be permuted. |
| [in] | num_permutation_elems | The number of integer elements in the permutation array. |
| [in] | input | The input OrtValue tensor to transpose. |
| [in] | stream | An optional OrtSyncStream instance to be used for asynchronous operations. May be NULL. |
| [out] | 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. |
- Returns
- If no error, nullptr will be returned. If there is an error, a pointer to an OrtStatus that contains error details will be returned. Use OrtApi::ReleaseStatus to free this pointer.
- Since
- Version 1.24.
◆ ort_version_supported
| uint32_t OrtScanKernelHelper::ort_version_supported |
Must be initialized to ORT_API_VERSION.
◆ Release
Called by ORT to release the OrtScanKernelHelper instance and its resources.
- Parameters
-
- Since
- Version 1.24.