OrtApi class final
\brief The C API
All C API functions are defined inside this structure as pointers to functions. Call OrtApiBase::GetApi to get a pointer to it
\nosubgrouping
- Inheritance
- Implemented types
- Available extensions
Constructors
- OrtApi()
Properties
-
AddCustomOpDomain
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<OrtCustomOpDomain> custom_op_domain)> -
\brief Add custom op domain to a session options
getter/setter pair
-
AddExternalInitializers
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Pointer< initializer_names, Pointer<Char> >Pointer< initializers, Size num_initializers)>OrtValue> > -
\brief Replace initialized Tensors with external data with the data provided in initializers.
getter/setter pair
-
AddExternalInitializersFromFilesInMemory
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Pointer< external_initializer_file_names, Pointer<Char> >Pointer< external_initializer_file_buffer_array, Pointer<Char> >Size> external_initializer_file_lengths, Size num_external_initializer_files)> -
\brief Replace initialized Tensors with external data with the provided files in memory
getter/setter pair
-
AddFreeDimensionOverride
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Char> dim_denotation, Int64 dim_value)> -
\brief Override session symbolic dimensions
getter/setter pair
-
AddFreeDimensionOverrideByName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Char> dim_name, Int64 dim_value)> -
Override symbolic dimensions (by specific name strings) with actual values
if known at session initialization time to enable optimizations that can
take advantage of fixed values (such as memory planning, etc)
getter/setter pair
-
AddInitializer
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Char> name, Pointer<OrtValue> val)> -
\brief Add a pre-allocated initializer to a session
getter/setter pair
-
AddKeyValuePair
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtKeyValuePairs> kvps, Pointer<Char> key, Pointer<Char> value)> -
\brief Add a key-value pair to the OrtKeyValuePairs instance.
getter/setter pair
-
address
→ Pointer<
T> -
Available on T, provided by the StructAddress extension
The memory address of the underlying data.no setter -
AddRunConfigEntry
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtRunOptions> options, Pointer<Char> config_key, Pointer<Char> config_value)> -
\brief Set a single run configuration entry as a pair of strings
getter/setter pair
-
AddSessionConfigEntry
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Char> config_key, Pointer<Char> config_value)> -
\brief Set a session configuration entry as a pair of strings
getter/setter pair
-
AllocatorAlloc
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtAllocator> ort_allocator, Size size, Pointer<Pointer< out)>Void> > -
\brief Calls OrtAllocator::Alloc function
getter/setter pair
-
AllocatorFree
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtAllocator> ort_allocator, Pointer<Void> p)> -
\brief Calls OrtAllocator::Free function
getter/setter pair
-
AllocatorGetInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtAllocator> ort_allocator, Pointer<Pointer< out)>OrtMemoryInfo> > -
\brief Calls OrtAllocator::Info function
getter/setter pair
-
AllocatorGetStats
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtAllocator> ort_allocator, Pointer<Pointer< out)>OrtKeyValuePairs> > -
\brief Calls OrtAllocator::GetStats function
getter/setter pair
-
BindInput
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtIoBinding> binding_ptr, Pointer<Char> name, Pointer<OrtValue> val_ptr)> -
\brief Bind an ::OrtValue to an ::OrtIoBinding input
getter/setter pair
-
BindOutput
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtIoBinding> binding_ptr, Pointer<Char> name, Pointer<OrtValue> val_ptr)> -
\brief Bind an ::OrtValue to an ::OrtIoBinding output
getter/setter pair
-
BindOutputToDevice
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtIoBinding> binding_ptr, Pointer<Char> name, Pointer<OrtMemoryInfo> mem_info_ptr)> -
\brief Bind an ::OrtIoBinding output to a device
getter/setter pair
-
CastTypeInfoToMapTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTypeInfo> type_info, Pointer<Pointer< out)>OrtMapTypeInfo> > -
\brief Get detailed map information from an ::OrtTypeInfo
getter/setter pair
-
CastTypeInfoToOptionalTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTypeInfo> type_info, Pointer<Pointer< out)>OrtOptionalTypeInfo> > -
\brief Get Optional Type information from an ::OrtTypeInfo
getter/setter pair
-
CastTypeInfoToSequenceTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTypeInfo> type_info, Pointer<Pointer< out)>OrtSequenceTypeInfo> > -
\brief Cast ::OrtTypeInfo to an ::OrtSequenceTypeInfo
getter/setter pair
-
CastTypeInfoToTensorInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTypeInfo> type_info, Pointer<Pointer< out)>OrtTensorTypeAndShapeInfo> > -
\brief Get ::OrtTensorTypeAndShapeInfo from an ::OrtTypeInfo
getter/setter pair
-
ClearBoundInputs
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtIoBinding> binding_ptr)> -
\brief Clears any previously set Inputs for an ::OrtIoBinding
getter/setter pair
-
ClearBoundOutputs
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtIoBinding> binding_ptr)> -
\brief Clears any previously set Outputs for an ::OrtIoBinding
getter/setter pair
-
CloneSessionOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> in_options, Pointer<Pointer< out_options)>OrtSessionOptions> > -
\brief Create a copy of an existing ::OrtSessionOptions
getter/setter pair
-
CompareMemoryInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtMemoryInfo> info1, Pointer<OrtMemoryInfo> info2, Pointer<Int> out)> -
\brief Compare ::OrtMemoryInfo objects for equality
getter/setter pair
-
CopyKernelInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Pointer< info_copy)>OrtKernelInfo> > -
\brief: Get a copy of kernel info
getter/setter pair
-
CopyTensors
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<Pointer< src_tensors, Pointer<OrtValue> >Pointer< dst_tensors, Pointer<OrtValue> >OrtSyncStream> stream, Size num_tensors)> -
\brief Copy OrtValue instances containing Tensors between devices.
getter/setter pair
-
CreateAllocator
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<OrtMemoryInfo> mem_info, Pointer<Pointer< out)>OrtAllocator> > -
\brief Create an allocator for an ::OrtSession following an ::OrtMemoryInfo
getter/setter pair
-
CreateAndRegisterAllocator
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<OrtMemoryInfo> mem_info, Pointer<OrtArenaCfg> arena_cfg)> -
\brief Create an allocator and register it with the ::OrtEnv
getter/setter pair
-
CreateAndRegisterAllocatorV2
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<Char> provider_type, Pointer<OrtMemoryInfo> mem_info, Pointer<OrtArenaCfg> arena_cfg, Pointer<Pointer< provider_options_keys, Pointer<Char> >Pointer< provider_options_values, Size num_keys)>Char> > -
\brief Create an allocator with specific type and register it with the ::OrtEnv
This API enhance CreateAndRegisterAllocator that it can create an allocator with specific type, not just CPU allocator
Enables sharing the allocator between multiple sessions that use the same env instance.
Lifetime of the created allocator will be valid for the duration of the environment.
Returns an error if an allocator with the same ::OrtMemoryInfo is already registered.
\param
inenv OrtEnv instance \paraminprovider_type ExecutionProvider type \paraminmem_info OrtMemoryInfo instance \paraminarena_cfg Arena configuration \paraminprovider_options_keys key of the provider options map \paraminprovider_options_values value of the provider options map \paraminnum_keys Length of the provider options mapgetter/setter pair -
CreateArenaCfg
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Size max_mem, Int arena_extend_strategy, Int initial_chunk_size_bytes, Int max_dead_bytes_per_chunk, Pointer< >Pointer< out)>OrtArenaCfg> > -
\deprecated Use OrtApi::CreateArenaCfgV2
getter/setter pair
-
CreateArenaCfgV2
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< arena_config_keys, Pointer<Char> >Size> arena_config_values, Size num_keys, Pointer<Pointer< out)>OrtArenaCfg> > -
\brief Create an ::OrtArenaCfg
getter/setter pair
-
CreateCANNProviderOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< out)>OrtCANNProviderOptions> > -
\brief Create an OrtCANNProviderOptions
getter/setter pair
-
CreateCpuMemoryInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Int type, Int mem_type, Pointer< >Pointer< out)>OrtMemoryInfo> > -
\brief Create an ::OrtMemoryInfo for CPU memory
getter/setter pair
-
CreateCUDAProviderOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< out)>OrtCUDAProviderOptionsV2> > -
\brief Create an OrtCUDAProviderOptionsV2
getter/setter pair
-
CreateCustomOpDomain
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Char> domain, Pointer<Pointer< out)>OrtCustomOpDomain> > -
\brief Create a custom op domain
getter/setter pair
-
CreateDnnlProviderOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< out)>OrtDnnlProviderOptions> > -
\brief Create an OrtDnnlProviderOptions
getter/setter pair
-
CreateEnv
↔ Pointer<
NativeFunction< OrtStatusPtr Function(UnsignedInt log_severity_level, Pointer< >Char> logid, Pointer<Pointer< out)>OrtEnv> > -
\brief Create an OrtEnv
getter/setter pair
-
CreateEnvWithCustomLogger
↔ Pointer<
NativeFunction< OrtStatusPtr Function(OrtLoggingFunction logging_function, Pointer< >Void> logger_param, UnsignedInt log_severity_level, Pointer<Char> logid, Pointer<Pointer< out)>OrtEnv> > -
\brief Create an OrtEnv
getter/setter pair
-
CreateEnvWithCustomLoggerAndGlobalThreadPools
↔ Pointer<
NativeFunction< OrtStatusPtr Function(OrtLoggingFunction logging_function, Pointer< >Void> logger_param, UnsignedInt log_severity_level, Pointer<Char> logid, Pointer<OrtThreadingOptions> tp_options, Pointer<Pointer< out)>OrtEnv> > -
Create a custom environment with global threadpools and logger that will be shared across sessions.
Use this in conjunction with OrtApi::DisablePerSessionThreads or else the session will use
its own thread pools.
getter/setter pair
-
CreateEnvWithGlobalThreadPools
↔ Pointer<
NativeFunction< OrtStatusPtr Function(UnsignedInt log_severity_level, Pointer< >Char> logid, Pointer<OrtThreadingOptions> tp_options, Pointer<Pointer< out)>OrtEnv> > -
\brief Create an OrtEnv
getter/setter pair
-
CreateEnvWithOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnvCreationOptions> options, Pointer<Pointer< out)>OrtEnv> > -
\brief Create an OrtEnv instance with the given options.
getter/setter pair
-
CreateExternalInitializerInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Char> filepath, Int64 file_offset, Size byte_size, Pointer<Pointer< out)>OrtExternalInitializerInfo> > -
\brief Creates an OrtExternalInitializerInfo instance.
getter/setter pair
-
CreateIoBinding
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<Pointer< out)>OrtIoBinding> > -
\brief Create an ::OrtIoBinding instance
getter/setter pair
-
CreateKeyValuePairs
↔ Pointer<
NativeFunction< Void Function(Pointer< >Pointer< out)>OrtKeyValuePairs> > -
\brief Create an OrtKeyValuePairs instance.
getter/setter pair
-
CreateLoraAdapter
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Char> adapter_file_path, Pointer<OrtAllocator> allocator, Pointer<Pointer< out)>OrtLoraAdapter> > -
\brief Create an OrtLoraAdapter
getter/setter pair
-
CreateLoraAdapterFromArray
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Void> bytes, Size num_bytes, Pointer<OrtAllocator> allocator, Pointer<Pointer< out)>OrtLoraAdapter> > -
\brief Create an OrtLoraAdapter
getter/setter pair
-
CreateMemoryInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Char> name, Int type, Int id, Int mem_type, Pointer<Pointer< out)>OrtMemoryInfo> > -
\brief Create an ::OrtMemoryInfo
getter/setter pair
-
CreateMemoryInfo_V2
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Char> name, UnsignedInt device_type, Uint32 vendor_id, Int32 device_id, UnsignedInt mem_type, Size alignment, Int allocator_type, Pointer<Pointer< out)>OrtMemoryInfo> > -
\brief Create an ::OrtMemoryInfo
getter/setter pair
-
CreateOp
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Char> op_name, Pointer<Char> domain, Int version, Pointer<Pointer< type_constraint_names, Pointer<Char> >UnsignedInt> type_constraint_values, Int type_constraint_count, Pointer<Pointer< attr_values, Int attr_count, Int input_count, Int output_count, Pointer<OrtOpAttr> >Pointer< ort_op)>OrtOp> > -
\brief: Create onnxruntime native operator
getter/setter pair
-
CreateOpaqueValue
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Char> domain_name, Pointer<Char> type_name, Pointer<Void> data_container, Size data_container_size, Pointer<Pointer< out)>OrtValue> > -
\brief Create an opaque (custom user defined type) ::OrtValue
getter/setter pair
-
CreateOpAttr
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Char> name, Pointer<Void> data, Int len, UnsignedInt type, Pointer<Pointer< op_attr)>OrtOpAttr> > -
\brief: Create attribute of onnxruntime operator
getter/setter pair
-
CreatePrepackedWeightsContainer
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< out)>OrtPrepackedWeightsContainer> > -
\brief Create an ::OrtPrepackedWeightsContainer
getter/setter pair
-
CreateROCMProviderOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< out)>OrtROCMProviderOptions> > -
\brief Create an OrtROCMProviderOptions
getter/setter pair
-
CreateRunOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< out)>OrtRunOptions> > -
\brief Create an OrtRunOptions
getter/setter pair
-
CreateSession
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<Char> model_path, Pointer<OrtSessionOptions> options, Pointer<Pointer< out)>OrtSession> > -
\brief Create an OrtSession from a model file
getter/setter pair
-
CreateSessionFromArray
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<Void> model_data, Size model_data_length, Pointer<OrtSessionOptions> options, Pointer<Pointer< out)>OrtSession> > -
\brief Create an OrtSession from memory
getter/setter pair
-
CreateSessionFromArrayWithPrepackedWeightsContainer
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<Void> model_data, Size model_data_length, Pointer<OrtSessionOptions> options, Pointer<OrtPrepackedWeightsContainer> prepacked_weights_container, Pointer<Pointer< out)>OrtSession> > -
\brief Create session from memory with prepacked weights container
getter/setter pair
-
CreateSessionOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< options)>OrtSessionOptions> > -
\brief Create an ::OrtSessionOptions object
getter/setter pair
-
CreateSessionWithPrepackedWeightsContainer
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<Char> model_path, Pointer<OrtSessionOptions> options, Pointer<OrtPrepackedWeightsContainer> prepacked_weights_container, Pointer<Pointer< out)>OrtSession> > -
\brief Create session with prepacked weights container
getter/setter pair
-
\brief Create/replace a shared allocator for the OrtEpDevice in the OrtEnv.
getter/setter pair
-
CreateSparseTensorAsOrtValue
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtAllocator> allocator, Pointer<Int64> dense_shape, Size dense_shape_len, UnsignedInt type, Pointer<Pointer< out)>OrtValue> > -
\brief Create an ::OrtValue with a sparse tensor that is empty.
getter/setter pair
-
CreateSparseTensorWithValuesAsOrtValue
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtMemoryInfo> info, Pointer<Void> p_data, Pointer<Int64> dense_shape, Size dense_shape_len, Pointer<Int64> values_shape, Size values_shape_len, UnsignedInt type, Pointer<Pointer< out)>OrtValue> > -
Create an ::OrtValue with a sparse tensor. This is the first step.
Next, use Use
getter/setter pair
-
CreateStatus
↔ Pointer<
NativeFunction< Pointer< >OrtStatus> Function(UnsignedInt code, Pointer<Char> msg)> -
\brief Create an OrtStatus from a null terminated string
getter/setter pair
-
CreateSyncStreamForEpDevice
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEpDevice> ep_device, Pointer<OrtKeyValuePairs> stream_options, Pointer<Pointer< stream)>OrtSyncStream> > -
\brief Create an OrtSyncStream for the given OrtEpDevice.
getter/setter pair
-
CreateTensorAsOrtValue
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtAllocator> allocator, Pointer<Int64> shape, Size shape_len, UnsignedInt type, Pointer<Pointer< out)>OrtValue> > -
\brief Create a tensor
getter/setter pair
-
CreateTensorRTProviderOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< out)>OrtTensorRTProviderOptionsV2> > -
\brief Create an OrtTensorRTProviderOptionsV2
getter/setter pair
-
CreateTensorTypeAndShapeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< out)>OrtTensorTypeAndShapeInfo> > -
\brief Create an ::OrtTensorTypeAndShapeInfo object
getter/setter pair
-
CreateTensorWithDataAndDeleterAsOrtValue
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtAllocator> deleter, Pointer<Void> p_data, Size p_data_len, Pointer<Int64> shape, Size shape_len, UnsignedInt type, Pointer<Pointer< out)>OrtValue> > -
\brief Create an OrtValue for a Tensor that uses pre-existing memory.
getter/setter pair
-
CreateTensorWithDataAsOrtValue
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtMemoryInfo> info, Pointer<Void> p_data, Size p_data_len, Pointer<Int64> shape, Size shape_len, UnsignedInt type, Pointer<Pointer< out)>OrtValue> > -
\brief Create a tensor backed by a user supplied buffer
getter/setter pair
-
CreateThreadingOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< out)>OrtThreadingOptions> > -
\brief Create an ::OrtThreadingOptions
getter/setter pair
-
CreateValue
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< in$, Size num_values, UnsignedInt value_type, Pointer<OrtValue> >Pointer< out)>OrtValue> > -
\brief Create a map or sequence ::OrtValue
getter/setter pair
-
CustomOpDomain_Add
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtCustomOpDomain> custom_op_domain, Pointer<OrtCustomOp> op)> -
\brief Add a custom op to a custom op domain
getter/setter pair
-
DeviceEpIncompatibilityDetails_GetErrorCode
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtDeviceEpIncompatibilityDetails> details, Pointer<Int32> error_code)> -
\brief Get the execution provider error code from OrtDeviceEpIncompatibilityDetails.
getter/setter pair
-
DeviceEpIncompatibilityDetails_GetNotes
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtDeviceEpIncompatibilityDetails> details, Pointer<Pointer< notes)>Char> > -
\brief Get the notes from OrtDeviceEpIncompatibilityDetails.
getter/setter pair
-
DeviceEpIncompatibilityDetails_GetReasonsBitmask
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtDeviceEpIncompatibilityDetails> details, Pointer<Uint32> reasons_bitmask)> -
\brief Get the incompatibility reasons bitmask from OrtDeviceEpIncompatibilityDetails.
getter/setter pair
-
DisableCpuMemArena
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options)> -
\brief Disable the memory arena on CPU
getter/setter pair
-
DisableMemPattern
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options)> -
\brief Disable the memory pattern optimization
getter/setter pair
-
DisablePerSessionThreads
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options)> -
\brief Use global thread pool on a session
getter/setter pair
-
DisableProfiling
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options)> -
\brief Disable profiling for a session
getter/setter pair
-
DisableTelemetryEvents
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env)> -
\brief Disable Telemetry
getter/setter pair
-
EnableCpuMemArena
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options)> -
\brief Enable the memory arena on CPU
getter/setter pair
-
EnableMemPattern
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options)> -
\brief Enable the memory pattern optimization
getter/setter pair
-
EnableOrtCustomOps
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options)> -
\brief Enable custom operators
getter/setter pair
-
EnableProfiling
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Char> profile_file_prefix)> -
\brief Enable profiling for a session
getter/setter pair
-
EnableTelemetryEvents
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env)> -
\brief Enable Telemetry
getter/setter pair
-
EpAssignedNode_GetDomain
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEpAssignedNode> ep_node, Pointer<Pointer< out)>Char> > -
\brief Get the domain of the node assigned to an execution provider.
getter/setter pair
-
EpAssignedNode_GetName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEpAssignedNode> ep_node, Pointer<Pointer< out)>Char> > -
\brief Get the name of the node assigned to an execution provider.
getter/setter pair
-
EpAssignedNode_GetOperatorType
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEpAssignedNode> ep_node, Pointer<Pointer< out)>Char> > -
\brief Get the operator type of the node assigned to an execution provider.
getter/setter pair
-
EpAssignedSubgraph_GetEpName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEpAssignedSubgraph> ep_subgraph, Pointer<Pointer< out)>Char> > -
\brief Get the name of the execution provider to which the subgraph was assigned.
getter/setter pair
-
EpAssignedSubgraph_GetNodes
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEpAssignedSubgraph> ep_subgraph, Pointer<Pointer< ep_nodes, Pointer<Pointer< >OrtEpAssignedNode> >Size> num_ep_nodes)> -
\brief Get the nodes in a subgraph assigned to a specific execution provider.
getter/setter pair
-
EpDevice_Device
↔ Pointer<
NativeFunction< Pointer< >OrtHardwareDevice> Function(Pointer<OrtEpDevice> ep_device)> -
\brief Get the OrtHardwareDevice instance for the OrtEpDevice.
getter/setter pair
-
EpDevice_EpMetadata
↔ Pointer<
NativeFunction< Pointer< >OrtKeyValuePairs> Function(Pointer<OrtEpDevice> ep_device)> -
\brief Get the metadata for the OrtEpDevice.
getter/setter pair
-
EpDevice_EpName
↔ Pointer<
NativeFunction< Pointer< >Char> Function(Pointer<OrtEpDevice> ep_device)> -
\brief Get the execution provider name.
getter/setter pair
-
EpDevice_EpOptions
↔ Pointer<
NativeFunction< Pointer< >OrtKeyValuePairs> Function(Pointer<OrtEpDevice> ep_device)> -
\brief Get the execution provider options for the OrtEpDevice.
getter/setter pair
-
EpDevice_EpVendor
↔ Pointer<
NativeFunction< Pointer< >Char> Function(Pointer<OrtEpDevice> ep_device)> -
\brief Get the execution provider's vendor name.
getter/setter pair
-
EpDevice_MemoryInfo
↔ Pointer<
NativeFunction< Pointer< >OrtMemoryInfo> Function(Pointer<OrtEpDevice> ep_device, UnsignedInt memory_type)> -
\brief Get the OrtMemoryInfo for the device.
getter/setter pair
-
ExternalInitializerInfo_GetByteSize
↔ Pointer<
NativeFunction< Size Function(Pointer< >OrtExternalInitializerInfo> info)> -
\brief Get the size in bytes of the initializer's data within the file.
getter/setter pair
-
ExternalInitializerInfo_GetFileOffset
↔ Pointer<
NativeFunction< Int64 Function(Pointer< >OrtExternalInitializerInfo> info)> -
\brief Get the byte offset within the file where the initializer's data is stored.
getter/setter pair
-
ExternalInitializerInfo_GetFilePath
↔ Pointer<
NativeFunction< Pointer< >Char> Function(Pointer<OrtExternalInitializerInfo> info)> -
\brief Get the relative path to the file that stores the initializer's data.
getter/setter pair
-
FillSparseTensorBlockSparse
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> ort_value, Pointer<OrtMemoryInfo> data_mem_info, Pointer<Int64> values_shape, Size values_shape_len, Pointer<Void> values, Pointer<Int64> indices_shape_data, Size indices_shape_len, Pointer<Int32> indices_data)> -
This fills populates an empty tensor that was created using OrtApi::CreateSparseTensorAsOrtValue.
This will allocate required memory and copy the supplied NNZ values and BlockSparse indices into that memory allocation.
Memory allocation is performed using the allocator that was specified with OrtApi::CreateSparseTensorAsOrtValue.
getter/setter pair
-
FillSparseTensorCoo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> ort_value, Pointer<OrtMemoryInfo> data_mem_info, Pointer<Int64> values_shape, Size values_shape_len, Pointer<Void> values, Pointer<Int64> indices_data, Size indices_num)> -
This fills populates an empty tensor that was created using OrtApi::CreateSparseTensorAsOrtValue.
This will allocate required memory and copy the supplied NNZ values and COO indices into that memory allocation.
Memory allocation is performed using the allocator that was specified with OrtApi::CreateSparseTensorAsOrtValue.
getter/setter pair
-
FillSparseTensorCsr
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> ort_value, Pointer<OrtMemoryInfo> data_mem_info, Pointer<Int64> values_shape, Size values_shape_len, Pointer<Void> values, Pointer<Int64> inner_indices_data, Size inner_indices_num, Pointer<Int64> outer_indices_data, Size outer_indices_num)> -
This fills populates an empty tensor that was created using OrtApi::CreateSparseTensorAsOrtValue.
This will allocate required memory and copy the supplied NNZ values and CSR indices into that memory allocation.
Memory allocation is performed using the allocator that was specified with OrtApi::CreateSparseTensorAsOrtValue.
getter/setter pair
-
FillStringTensor
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<Pointer< s, Size s_len)>Char> > -
\brief Set all strings at once in a string tensor
getter/setter pair
-
FillStringTensorElement
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<Char> s, Size index)> -
\brief Set a single string in a string tensor
getter/setter pair
-
GetAllocatorWithDefaultOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< out)>OrtAllocator> > -
\brief Get the default allocator
getter/setter pair
-
GetAvailableProviders
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< out_ptr, Pointer<Pointer< >Char> >Int> provider_length)> -
\brief Get the names of all available providers
getter/setter pair
-
GetBoundOutputNames
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtIoBinding> binding_ptr, Pointer<OrtAllocator> allocator, Pointer<Pointer< buffer, Pointer<Char> >Pointer< lengths, Pointer<Size> >Size> count)> -
\brief Get the names of an ::OrtIoBinding's outputs
getter/setter pair
-
GetBoundOutputValues
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtIoBinding> binding_ptr, Pointer<OrtAllocator> allocator, Pointer<Pointer< output, Pointer<Pointer< >OrtValue> >Size> output_count)> -
\brief Get the output ::OrtValue objects from an ::OrtIoBinding
getter/setter pair
-
GetBuildInfoString
↔ Pointer<
NativeFunction< Pointer< >Char> Function()> -
\brief Returns a null terminated string of the build info including git info and cxx flags
getter/setter pair
-
GetCANNProviderOptionsAsString
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtCANNProviderOptions> cann_options, Pointer<OrtAllocator> allocator, Pointer<Pointer< ptr)>Char> > -
\brief Get serialized CANN provider options string.
getter/setter pair
-
GetCompatibilityInfoFromModel
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Char> model_path, Pointer<Char> ep_type, Pointer<OrtAllocator> allocator, Pointer<Pointer< compatibility_info)>Char> > -
\brief Extract EP compatibility info from a precompiled model file.
getter/setter pair
-
GetCompatibilityInfoFromModelBytes
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Void> model_data, Size model_data_length, Pointer<Char> ep_type, Pointer<OrtAllocator> allocator, Pointer<Pointer< compatibility_info)>Char> > -
\brief Extract EP compatibility info from precompiled model bytes in memory.
getter/setter pair
-
GetCompileApi
↔ Pointer<
NativeFunction< Pointer< >OrtCompileApi> Function()> -
\brief Get the Compile API instance.
getter/setter pair
-
GetCUDAProviderOptionsAsString
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtCUDAProviderOptionsV2> cuda_options, Pointer<OrtAllocator> allocator, Pointer<Pointer< ptr)>Char> > -
Get serialized CUDA provider options string.
getter/setter pair
-
GetCUDAProviderOptionsByName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtCUDAProviderOptionsV2> cuda_options, Pointer<Char> key, Pointer<Pointer< ptr)>Void> > -
Get CUDA EP provider option where its data type is pointer.
If the data type of the provider option can be represented by string please use GetCUDAProviderOptionsAsString.
getter/setter pair
-
GetCurrentGpuDeviceId
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Int> device_id)> -
\brief Get current GPU device ID
getter/setter pair
-
GetDenotationFromTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTypeInfo> type_info, Pointer<Pointer< denotation, Pointer<Char> >Size> len)> -
\brief Get denotation from type information
getter/setter pair
-
GetDimensions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTensorTypeAndShapeInfo> info, Pointer<Int64> dim_values, Size dim_values_length)> -
\brief Get dimensions in ::OrtTensorTypeAndShapeInfo
getter/setter pair
-
GetDimensionsCount
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTensorTypeAndShapeInfo> info, Pointer<Size> out)> -
\brief Get dimension count in ::OrtTensorTypeAndShapeInfo
getter/setter pair
-
GetDnnlProviderOptionsAsString
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtDnnlProviderOptions> dnnl_options, Pointer<OrtAllocator> allocator, Pointer<Pointer< ptr)>Char> > -
Get serialized oneDNN provider options string.
getter/setter pair
-
GetEpApi
↔ Pointer<
NativeFunction< Pointer< >OrtEpApi> Function()> -
\brief Get the OrtEpApi instance for implementing an execution provider.
getter/setter pair
-
GetEpDevices
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<Pointer< ep_devices, Pointer<Pointer< >OrtEpDevice> >Size> num_ep_devices)> -
\brief Get the list of available OrtEpDevice instances.
getter/setter pair
-
GetErrorCode
↔ Pointer<
NativeFunction< UnsignedInt Function(Pointer< >OrtStatus> status)> -
\brief Get OrtErrorCode from OrtStatus
getter/setter pair
-
GetErrorMessage
↔ Pointer<
NativeFunction< Pointer< >Char> Function(Pointer<OrtStatus> status)> -
\brief Get error string from OrtStatus
getter/setter pair
-
GetExecutionProviderApi
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Char> provider_name, Uint32 version, Pointer<Pointer< provider_api)>Void> > -
@}
\name GetExecutionProviderApi
@{
/** \brief Get a pointer to the requested version of the Execution Provider specific
getter/setter pair
-
GetHardwareDeviceEpIncompatibilityDetails
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<Char> ep_name, Pointer<OrtHardwareDevice> hw, Pointer<Pointer< details)>OrtDeviceEpIncompatibilityDetails> > -
\brief Check for known incompatibility issues between hardware device and a specific execution provider.
getter/setter pair
-
GetHardwareDevices
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<Pointer< devices, Size num_devices)>OrtHardwareDevice> > -
\brief Get the list of available hardware devices.
getter/setter pair
-
GetInteropApi
↔ Pointer<
NativeFunction< Pointer< >OrtInteropApi> Function()> -
\brief Get the EP Interop API instance.
getter/setter pair
-
GetKeyValue
↔ Pointer<
NativeFunction< Pointer< >Char> Function(Pointer<OrtKeyValuePairs> kvps, Pointer<Char> key)> -
\brief Get the value associated with a key in the OrtKeyValuePairs instance.
getter/setter pair
-
GetKeyValuePairs
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtKeyValuePairs> kvps, Pointer<Pointer< keys, Pointer<Pointer< >Char> >Pointer< values, Pointer<Pointer< >Char> >Size> num_entries)> -
\brief Get all the key-value pairs from the OrtKeyValuePairs instance.
getter/setter pair
-
GetMapKeyType
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtMapTypeInfo> map_type_info, Pointer<UnsignedInt> out)> -
\brief Get key type from an ::OrtMapTypeInfo
getter/setter pair
-
GetMapValueType
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtMapTypeInfo> map_type_info, Pointer<Pointer< type_info)>OrtTypeInfo> > -
\brief Get the value type from an ::OrtMapTypeInfo
getter/setter pair
-
GetModelCompatibilityForEpDevices
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< ep_devices, Size num_ep_devices, Pointer<OrtEpDevice> >Char> compatibility_info, Pointer<UnsignedInt> out_status)> -
\brief Validate a compiled model's compatibility information for one or more EP devices.
getter/setter pair
-
GetModelEditorApi
↔ Pointer<
NativeFunction< Pointer< >OrtModelEditorApi> Function()> -
\brief Get the Model Editor API instance
getter/setter pair
-
GetNumHardwareDevices
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<Size> num_devices)> -
\brief Get the number of available hardware devices.
getter/setter pair
-
GetOnnxTypeFromTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTypeInfo> type_info, Pointer<UnsignedInt> out)> -
\brief Get ::ONNXType from ::OrtTypeInfo
getter/setter pair
-
GetOpaqueValue
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Char> domain_name, Pointer<Char> type_name, Pointer<OrtValue> in$, Pointer<Void> data_container, Size data_container_size)> -
\brief Get internal data from an opaque (custom user defined type) ::OrtValue
getter/setter pair
-
GetOptionalContainedTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtOptionalTypeInfo> optional_type_info, Pointer<Pointer< out)>OrtTypeInfo> > -
\brief Get OrtTypeInfo for the allowed contained type from an ::OrtOptionalTypeInfo.
getter/setter pair
-
GetResizedStringTensorElementBuffer
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Size index, Size length_in_bytes, Pointer<Pointer< buffer)>Char> > -
\brief Set a single string in a string tensor
Do not zero terminate the string data.
getter/setter pair
-
GetROCMProviderOptionsAsString
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtROCMProviderOptions> rocm_options, Pointer<OrtAllocator> allocator, Pointer<Pointer< ptr)>Char> > -
Get serialized ROCm provider options string.
getter/setter pair
-
GetRunConfigEntry
↔ Pointer<
NativeFunction< Pointer< >Char> Function(Pointer<OrtRunOptions> options, Pointer<Char> config_key)> -
\brief Get a run configuration entry.
getter/setter pair
-
GetSequenceElementType
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSequenceTypeInfo> sequence_type_info, Pointer<Pointer< type_info)>OrtTypeInfo> > -
\brief Get element type from an ::OrtSequenceTypeInfo
getter/setter pair
-
GetSessionConfigEntry
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Char> config_key, Pointer<Char> config_value, Pointer<Size> size)> -
\brief Get a session configuration value.
getter/setter pair
-
GetSessionOptionsConfigEntries
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Pointer< out)>OrtKeyValuePairs> > -
\brief Get Session configuration entries.
getter/setter pair
-
\brief Get a shared allocator from the OrtEnv.
getter/setter pair
-
GetSparseTensorFormat
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> ort_value, Pointer<UnsignedInt> out)> -
\brief Returns sparse tensor format enum iff a given ort value contains an instance of sparse tensor.
getter/setter pair
-
GetSparseTensorIndices
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> ort_value, UnsignedInt indices_format, Pointer<Size> num_indices, Pointer<Pointer< indices)>Void> > -
\brief Returns indices data for the type of the indices specified by indices_format
getter/setter pair
-
GetSparseTensorIndicesTypeShape
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> ort_value, UnsignedInt indices_format, Pointer<Pointer< out)>OrtTensorTypeAndShapeInfo> > -
\brief Returns data type, shape for the type of indices specified by indices_format.
getter/setter pair
-
GetSparseTensorValues
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> ort_value, Pointer<Pointer< out)>Void> > -
\brief Returns numeric data for sparse tensor values (nnz). For string values use GetStringTensor*().
getter/setter pair
-
GetSparseTensorValuesTypeAndShape
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> ort_value, Pointer<Pointer< out)>OrtTensorTypeAndShapeInfo> > -
\brief Returns data type and shape of sparse tensor values (nnz) iff ::OrtValue contains a SparseTensor.
getter/setter pair
-
GetStringTensorContent
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<Void> s, Size s_len, Pointer<Size> offsets, Size offsets_len)> -
\brief Get all strings from a string tensor
getter/setter pair
-
GetStringTensorDataLength
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<Size> len)> -
\brief Get total byte length for all strings in a string tensor
getter/setter pair
-
GetStringTensorElement
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Size s_len, Size index, Pointer<Void> s)> -
\brief Get a single string from a string tensor
getter/setter pair
-
GetStringTensorElementLength
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Size index, Pointer<Size> out)> -
\brief Get the length of a single string in a string tensor
getter/setter pair
-
GetSymbolicDimensions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTensorTypeAndShapeInfo> info, Pointer<Pointer< dim_params, Size dim_params_length)>Char> > -
\brief Get symbolic dimension names in ::OrtTensorTypeAndShapeInfo
getter/setter pair
-
GetTensorData
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<Pointer< out)>Void> > -
\brief Get a const pointer to the raw data inside a tensor
getter/setter pair
-
GetTensorElementType
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTensorTypeAndShapeInfo> info, Pointer<UnsignedInt> out)> -
\brief Get element type in ::OrtTensorTypeAndShapeInfo
getter/setter pair
-
GetTensorElementTypeAndShapeDataReference
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<UnsignedInt> elem_type, Pointer<Pointer< shape_data, Pointer<Int64> >Size> shape_data_count)> -
\brief Get the element data type and shape for an OrtValue that represents a Tensor (scalar, dense, or sparse).
getter/setter pair
-
GetTensorMemoryInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<Pointer< mem_info)>OrtMemoryInfo> > -
@}
\name GetTensorMemoryInfo
@{
/** \brief Returns a pointer to the ::OrtMemoryInfo of a Tensor
getter/setter pair
-
GetTensorMutableData
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<Pointer< out)>Void> > -
\brief Get a pointer to the raw data inside a tensor
getter/setter pair
-
GetTensorRTProviderOptionsAsString
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTensorRTProviderOptionsV2> tensorrt_options, Pointer<OrtAllocator> allocator, Pointer<Pointer< ptr)>Char> > -
\brief Get serialized TensorRT provider options string.
getter/setter pair
-
GetTensorRTProviderOptionsByName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTensorRTProviderOptionsV2> tensorrt_options, Pointer<Char> key, Pointer<Pointer< ptr)>Void> > -
Get TensorRT EP provider option where its data type is pointer.
If the data type of the provider option can be represented by string please use GetTensorRTProviderOptionsAsString.
getter/setter pair
-
GetTensorShapeElementCount
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTensorTypeAndShapeInfo> info, Pointer<Size> out)> -
\brief Get total number of elements in a tensor shape from an ::OrtTensorTypeAndShapeInfo
getter/setter pair
-
GetTensorSizeInBytes
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> ort_value, Pointer<Size> size)> -
\brief Compute total size in bytes of the tensor data contained in an OrtValue.
getter/setter pair
-
GetTensorTypeAndShape
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<Pointer< out)>OrtTensorTypeAndShapeInfo> > -
\brief Get type and shape information from a tensor ::OrtValue
getter/setter pair
-
GetTrainingApi
↔ Pointer<
NativeFunction< Pointer< >OrtTrainingApi> Function(Uint32 version)> -
\name Ort Training
@{
/** \brief Gets the Training C Api struct
*
getter/setter pair
-
GetTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<Pointer< out)>OrtTypeInfo> > -
\brief Get type information of an OrtValue
getter/setter pair
-
GetValue
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Int index, Pointer<OrtAllocator> allocator, Pointer<Pointer< out)>OrtValue> > -
\brief Get non tensor data from an ::OrtValue
getter/setter pair
-
GetValueCount
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<Size> out)> -
\brief Get non tensor value count from an ::OrtValue
getter/setter pair
-
GetValueInfoName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValueInfo> value_info, Pointer<Pointer< name)>Char> > -
\brief Get the value name from an OrtValueInfo instance.
\param
invalue_info The OrtValueInfo instance. \paramoutname The name of the OrtValueInfo \snippet{doc} snippets.dox OrtStatus Return Value \since Version 1.22.getter/setter pair -
GetValueInfoTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValueInfo> value_info, Pointer<Pointer< type_info)>OrtTypeInfo> > -
\brief Get the type information from an OrtValueInfo instance.
\param
invalue_info The OrtValueInfo instance. \paramouttype_info The type info of the OrtValueInfo \snippet{doc} snippets.dox OrtStatus Return Value \since Version 1.22.getter/setter pair -
GetValueType
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<UnsignedInt> out)> -
\brief Get ONNXType of an ::OrtValue
getter/setter pair
-
Graph_GetGraphView
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> src_graph, Pointer<Pointer< nodes, Size num_nodes, Pointer<OrtNode> >Pointer< dst_graph)>OrtGraph> > -
\brief Returns an OrtGraph that contains a subset of nodes in the source OrtGraph.
getter/setter pair
-
Graph_GetInitializers
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Pointer< initializers, Size num_initializers)>OrtValueInfo> > -
\brief Returns the graph's initializers as OrtValueInfo instances.
getter/setter pair
-
Graph_GetInputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Pointer< inputs, Size num_inputs)>OrtValueInfo> > -
\brief Returns the graph's inputs as OrtValueInfo instances.
getter/setter pair
-
Graph_GetModelMetadata
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Pointer< out)>OrtModelMetadata> > -
\brief Get ::OrtModelMetadata from an ::OrtGraph
getter/setter pair
-
Graph_GetModelPath
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Pointer< model_path)>Char> > -
\brief Get the filepath to the model from which an OrtGraph is constructed.
getter/setter pair
-
Graph_GetName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Pointer< graph_name)>Char> > -
\brief Returns a graph's name.
getter/setter pair
-
Graph_GetNodes
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Pointer< nodes, Size num_nodes)>OrtNode> > -
\brief Returns the graph's nodes as OrtNode instances.
getter/setter pair
-
Graph_GetNumInitializers
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Size> num_initializers)> -
\brief Returns the number of graph initializers.
getter/setter pair
-
Graph_GetNumInputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Size> num_inputs)> -
\brief Returns the number of graph inputs.
getter/setter pair
-
Graph_GetNumNodes
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Size> num_nodes)> -
\brief Returns the number of graph nodes.
getter/setter pair
-
Graph_GetNumOperatorSets
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Size> num_operator_sets)> -
\brief Returns the number of operator sets that the graph's model uses.
getter/setter pair
-
Graph_GetNumOutputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Size> num_outputs)> -
\brief Returns the number of graph outputs.
getter/setter pair
-
Graph_GetOnnxIRVersion
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Int64> onnx_ir_version)> -
\brief Returns the ONNX IR version.
getter/setter pair
-
Graph_GetOperatorSets
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Pointer< domains, Pointer<Char> >Int64> opset_versions, Size num_operator_sets)> -
\brief Returns the operator sets that the graph's model uses.
getter/setter pair
-
Graph_GetOutputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Pointer< outputs, Size num_outputs)>OrtValueInfo> > -
\brief Returns the graph's outputs as OrtValueInfo instances.
getter/setter pair
-
Graph_GetParentNode
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtGraph> graph, Pointer<Pointer< node)>OrtNode> > -
\brief Get the parent node for the given graph, if any exists.
getter/setter pair
-
HardwareDevice_DeviceId
↔ Pointer<
NativeFunction< Uint32 Function(Pointer< >OrtHardwareDevice> device)> -
\brief Get the hardware device's unique identifier.
getter/setter pair
-
HardwareDevice_Metadata
↔ Pointer<
NativeFunction< Pointer< >OrtKeyValuePairs> Function(Pointer<OrtHardwareDevice> device)> -
\brief Get hardware device metadata.
getter/setter pair
-
HardwareDevice_Type
↔ Pointer<
NativeFunction< UnsignedInt Function(Pointer< >OrtHardwareDevice> device)> -
\brief Get the hardware device type.
getter/setter pair
-
HardwareDevice_Vendor
↔ Pointer<
NativeFunction< Pointer< >Char> Function(Pointer<OrtHardwareDevice> device)> -
\brief Get the hardware device's vendor name.
getter/setter pair
-
HardwareDevice_VendorId
↔ Pointer<
NativeFunction< Uint32 Function(Pointer< >OrtHardwareDevice> device)> -
\brief Get the hardware device's vendor identifier.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
HasSessionConfigEntry
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Char> config_key, Pointer<Int> out)> -
\brief Checks if the given session configuration entry exists.
getter/setter pair
-
HasValue
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<Int> out)> -
\brief Sets out to 1 iff an optional type OrtValue has an element, 0 otherwise (OrtValue is None)
Use this API to find if the optional type OrtValue is None or not.
If the optional type OrtValue is not None, use the OrtValue just like any other OrtValue.
For example, if you get an OrtValue that corresponds to Optional(tensor) and
if HasValue() returns true, use it as tensor and so on.
getter/setter pair
-
InvokeOp
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelContext> context, Pointer<OrtOp> ort_op, Pointer<Pointer< input_values, Int input_count, Pointer<OrtValue> >Pointer< output_values, Int output_count)>OrtValue> > -
\brief: Invoke the operator created by OrtApi::CreateOp
The inputs must follow the order as specified in onnx specification
getter/setter pair
-
IsSparseTensor
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<Int> out)> -
\brief Sets *out to 1 iff an ::OrtValue is a SparseTensor, and 0 otherwise
getter/setter pair
-
IsTensor
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<Int> out)> -
\brief Return if an ::OrtValue is a tensor type
getter/setter pair
-
KernelContext_GetAllocator
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelContext> context, Pointer<OrtMemoryInfo> mem_info, Pointer<Pointer< out)>OrtAllocator> > -
\brief Get Allocator from KernelContext for a specific memoryInfo. Please use C API ReleaseAllocator to release out object
getter/setter pair
-
KernelContext_GetGPUComputeStream
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelContext> context, Pointer<Pointer< out)>Void> > -
\brief Used for custom operators, gets the GPU compute stream to use to launch the custom a GPU kernel
\see ::OrtCustomOp
\param
incontext OrtKernelContext instance \paramoutout Returns pointer to a GPU compute stream that can be used to launch the custom GPU kernel. If retrieving the GPU compute stream is not relevant (GPU not enabled in the build, kernel partitioned to some other EP), then a nullptr is returned as the output param. Do not free or mutate the returned pointer as it refers to internal data owned by the underlying session. Only use it for custom kernel launching.getter/setter pair -
KernelContext_GetInput
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelContext> context, Size index, Pointer<Pointer< out)>OrtValue> > -
\brief Used for custom operators, get an input of a kernel
getter/setter pair
-
KernelContext_GetInputCount
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelContext> context, Pointer<Size> out)> -
\brief Used for custom operators, get the input count of a kernel
getter/setter pair
-
KernelContext_GetLogger
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelContext> context, Pointer<Pointer< logger)>OrtLogger> > -
\brief Get the runtime logger from ::OrtKernelContext.
getter/setter pair
-
KernelContext_GetOutput
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelContext> context, Size index, Pointer<Int64> dim_values, Size dim_count, Pointer<Pointer< out)>OrtValue> > -
\brief Used for custom operators, get an output of a kernel
getter/setter pair
-
KernelContext_GetOutputCount
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelContext> context, Pointer<Size> out)> -
\brief Used for custom operators, get the output count of a kernel
getter/setter pair
-
KernelContext_GetResource
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelContext> context, Int resource_version, Int resource_id, Pointer<Pointer< resource)>Void> > -
Get a EP resource.
E.g. a cuda stream or a cublas handle
getter/setter pair
-
KernelContext_GetScratchBuffer
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelContext> context, Pointer<OrtMemoryInfo> mem_info, Size count_or_bytes, Pointer<Pointer< out)>Void> > -
\brief Get scratch buffer from the corresponding allocator under the specific OrtMemoryInfo object.
NOTE: callers are responsible to release this scratch buffer from the corresponding allocator
\param
incontext OrtKernelContext instance \paraminmem_info OrtMemoryInfo instance \paramincount_or_bytes How many bytes is this scratch buffer \paramoutout A pointer to the scratch buffergetter/setter pair -
KernelContext_ParallelFor
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelContext> context, Pointer<NativeFunction< fn, Size total, Size num_batch, Pointer<Void Function(Pointer< >Void> , Size)>Void> usr_data)> -
Run fn in parallel
getter/setter pair
-
KernelInfo_GetConfigEntries
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Pointer< out)>OrtKeyValuePairs> > -
\brief Get all config entries from ::OrtKernelInfo.
getter/setter pair
-
KernelInfo_GetInputCount
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Size> out)> -
\brief Get the number of inputs from ::OrtKernelInfo.
getter/setter pair
-
KernelInfo_GetInputName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Size index, Pointer<Char> out, Pointer<Size> size)> -
\brief Get the name of a ::OrtKernelInfo's input.
getter/setter pair
-
KernelInfo_GetInputTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Size index, Pointer<Pointer< type_info)>OrtTypeInfo> > -
\brief Get the type information for a ::OrtKernelInfo's input.
getter/setter pair
-
KernelInfo_GetLogger
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Pointer< logger)>OrtLogger> > -
\brief Get the session logger from ::OrtKernelInfo.
getter/setter pair
-
KernelInfo_GetNodeName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Char> out, Pointer<Size> size)> -
\brief Get the graph node name from ::OrtKernelInfo.
getter/setter pair
-
KernelInfo_GetOperatorDomain
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Char> out, Pointer<Size> size)> -
\brief Get the graph node's operator domain from ::OrtKernelInfo.
getter/setter pair
-
KernelInfo_GetOperatorSinceVersion
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Int> since_version)> -
\brief Get the opset version in which the given node's operator type was first defined from ::OrtKernelInfo.
getter/setter pair
-
KernelInfo_GetOperatorType
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Char> out, Pointer<Size> size)> -
\brief Get the graph node's operator type from ::OrtKernelInfo.
getter/setter pair
-
KernelInfo_GetOutputCount
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Size> out)> -
\brief Get the number of outputs from ::OrtKernelInfo.
getter/setter pair
-
KernelInfo_GetOutputName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Size index, Pointer<Char> out, Pointer<Size> size)> -
\brief Get the name of a ::OrtKernelInfo's output.
getter/setter pair
-
KernelInfo_GetOutputTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Size index, Pointer<Pointer< type_info)>OrtTypeInfo> > -
\brief Get the type information for a ::OrtKernelInfo's output.
getter/setter pair
-
KernelInfoGetAllocator
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Int mem_type, Pointer<Pointer< out)>OrtAllocator> > -
\brief Get allocator from KernelInfo for a specific memory type. Please use C API ReleaseAllocator to release out object
getter/setter pair
-
KernelInfoGetAttribute_float
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Char> name, Pointer<Float> out)> -
\brief Get a float stored as an attribute in the graph node
getter/setter pair
-
KernelInfoGetAttribute_int64
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Char> name, Pointer<Int64> out)> -
\brief Fetch a 64-bit int stored as an attribute in the graph node
getter/setter pair
-
KernelInfoGetAttribute_string
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Char> name, Pointer<Char> out, Pointer<Size> size)> -
\brief Fetch a string stored as an attribute in the graph node
getter/setter pair
-
KernelInfoGetAttribute_tensor
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Char> name, Pointer<OrtAllocator> allocator, Pointer<Pointer< out)>OrtValue> > -
\brief Get a ::OrtValue tensor stored as an attribute in the graph node.
getter/setter pair
-
KernelInfoGetAttributeArray_float
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Char> name, Pointer<Float> out, Pointer<Size> size)> -
\brief Fetch an array of int64_t values stored as an attribute in the graph node
getter/setter pair
-
KernelInfoGetAttributeArray_int64
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Pointer<Char> name, Pointer<Int64> out, Pointer<Size> size)> -
\brief Fetch an array of int64_t values stored as an attribute in the graph node
getter/setter pair
-
KernelInfoGetConstantInput_tensor
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtKernelInfo> info, Size index, Pointer<Int> is_constant, Pointer<Pointer< out)>OrtValue> > -
\brief Get a ::OrtValue tensor stored as a constant initializer in the graph node.
getter/setter pair
-
Logger_GetLoggingSeverityLevel
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtLogger> logger, Pointer<UnsignedInt> out)> -
\brief Get the logging severity level of the ::OrtLogger.
getter/setter pair
-
Logger_LogMessage
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtLogger> logger, UnsignedInt log_severity_level, Pointer<Char> message, Pointer<Char> file_path, Int line_number, Pointer<Char> func_name)> -
\brief Logs a message at the given severity level using the provided ::OrtLogger.
getter/setter pair
-
MemoryInfoGetDeviceMemType
↔ Pointer<
NativeFunction< UnsignedInt Function(Pointer< >OrtMemoryInfo> ptr)> -
\brief Get the device memory type from ::OrtMemoryInfo
getter/setter pair
-
MemoryInfoGetDeviceType
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtMemoryInfo> ptr, Pointer<UnsignedInt> out)> -
\brief Get OrtDevice type from MemoryInfo
getter/setter pair
-
MemoryInfoGetId
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtMemoryInfo> ptr, Pointer<Int> out)> -
\brief Get the device id from ::OrtMemoryInfo
getter/setter pair
-
MemoryInfoGetMemType
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtMemoryInfo> ptr, Pointer<Int> out)> -
\brief Get the ::OrtMemType from ::OrtMemoryInfo
getter/setter pair
-
MemoryInfoGetName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtMemoryInfo> ptr, Pointer<Pointer< out)>Char> > -
\brief Get name from ::OrtMemoryInfo
getter/setter pair
-
MemoryInfoGetType
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtMemoryInfo> ptr, Pointer<Int> out)> -
\brief Get the ::OrtAllocatorType from ::OrtMemoryInfo
getter/setter pair
-
MemoryInfoGetVendorId
↔ Pointer<
NativeFunction< Uint32 Function(Pointer< >OrtMemoryInfo> ptr)> -
\brief Get the vendor id from ::OrtMemoryInfo
getter/setter pair
-
ModelMetadataGetCustomMetadataMapKeys
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtModelMetadata> model_metadata, Pointer<OrtAllocator> allocator, Pointer<Pointer< keys, Pointer<Pointer< >Char> >Int64> num_keys)> -
\param
inmodel_metadata \paraminallocator \paramoutkeys Array of null terminated strings (array count = num_keys) allocated usingallocator. The strings and the pointer array must be freed usingallocatorkeyswill be set to nullptr if the custom metadata map is empty. \paramoutnum_keys Set to the number of elements in thekeysarraygetter/setter pair -
ModelMetadataGetDescription
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtModelMetadata> model_metadata, Pointer<OrtAllocator> allocator, Pointer<Pointer< value)>Char> > -
\brief Get
descriptionfrom an ::OrtModelMetadatagetter/setter pair -
ModelMetadataGetDomain
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtModelMetadata> model_metadata, Pointer<OrtAllocator> allocator, Pointer<Pointer< value)>Char> > -
\brief Get
domainfrom an ::OrtModelMetadatagetter/setter pair -
ModelMetadataGetGraphDescription
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtModelMetadata> model_metadata, Pointer<OrtAllocator> allocator, Pointer<Pointer< value)>Char> > -
Use this to obtain the description of the graph present in the model
(doc_string field of the GraphProto message within the ModelProto message).
If it doesn't exist, an empty string will be returned.
getter/setter pair
-
ModelMetadataGetGraphName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtModelMetadata> model_metadata, Pointer<OrtAllocator> allocator, Pointer<Pointer< value)>Char> > -
\brief Get
graph namefrom an ::OrtModelMetadatagetter/setter pair -
ModelMetadataGetProducerName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtModelMetadata> model_metadata, Pointer<OrtAllocator> allocator, Pointer<Pointer< value)>Char> > -
\brief Get
producer namefrom an ::OrtModelMetadatagetter/setter pair -
ModelMetadataGetVersion
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtModelMetadata> model_metadata, Pointer<Int64> value)> -
\brief Get version number from an ::OrtModelMetadata
getter/setter pair
-
ModelMetadataLookupCustomMetadataMap
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtModelMetadata> model_metadata, Pointer<OrtAllocator> allocator, Pointer<Char> key, Pointer<Pointer< value)>Char> > -
\brief Return data for a key in the custom metadata map in an ::OrtModelMetadata
getter/setter pair
-
Node_GetAttributeByName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Char> attribute_name, Pointer<Pointer< attribute)>OrtOpAttr> > -
\brief Gets the OrtNode's attribute as OrtOpAttr by name.
getter/setter pair
-
Node_GetAttributes
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Pointer< attributes, Size num_attributes)>OrtOpAttr> > -
\brief Returns a node's attributes as OrtOpAttr instances.
getter/setter pair
-
Node_GetDomain
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Pointer< domain_name)>Char> > -
\brief Returns a node's domain name.
getter/setter pair
-
Node_GetEpName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Pointer< out)>Char> > -
\brief Returns the execution provider name that this node is assigned to run on.
Returns NULL if the node has not been assigned to any execution provider yet.
For plugin execution providers, the name is the one returned by OrtEp::GetName.
getter/setter pair
-
Node_GetGraph
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Pointer< graph)>OrtGraph> > -
\brief Get the node's parent OrtGraph instance.
getter/setter pair
-
Node_GetId
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Size> node_id)> -
\brief Returns a node's identifier.
getter/setter pair
-
Node_GetImplicitInputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Pointer< implicit_inputs, Size num_implicit_inputs)>OrtValueInfo> > -
\brief Get the implicit inputs, as OrtValueInfo instances, that are used within the given node's subgraphs.
getter/setter pair
-
Node_GetInputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Pointer< inputs, Size num_inputs)>OrtValueInfo> > -
\brief Returns the node's inputs as OrtValueInfo instances.
getter/setter pair
-
Node_GetName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Pointer< node_name)>Char> > -
\brief Returns a node's name. Can be an empty string.
getter/setter pair
-
Node_GetNumAttributes
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Size> num_attributes)> -
\brief Returns the number of node attributes.
getter/setter pair
-
Node_GetNumImplicitInputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Size> num_implicit_inputs)> -
\brief Returns the number of node implicit inputs.
getter/setter pair
-
Node_GetNumInputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Size> num_inputs)> -
\brief Returns the number of node inputs.
getter/setter pair
-
Node_GetNumOutputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Size> num_outputs)> -
\brief Returns the number of node outputs.
getter/setter pair
-
Node_GetNumSubgraphs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Size> num_subgraphs)> -
\brief Returns the number of subgraphs contained by the given node.
getter/setter pair
-
Node_GetOperatorType
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Pointer< operator_type)>Char> > -
\brief Returns a node's operator type (e.g., "Conv").
getter/setter pair
-
Node_GetOutputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Pointer< outputs, Size num_outputs)>OrtValueInfo> > -
\brief Returns the node's outputs as OrtValueInfo instances.
getter/setter pair
-
Node_GetSinceVersion
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Int> since_version)> -
\brief Get the opset version in which the given node's operator type was first defined.
getter/setter pair
-
Node_GetSubgraphs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtNode> node, Pointer<Pointer< subgraphs, Size num_subgraphs, Pointer<OrtGraph> >Pointer< attribute_names)>Char> > -
\brief Get the subgraphs, as OrtGraph instances, contained by the given node.
getter/setter pair
-
OpAttr_GetName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtOpAttr> attribute, Pointer<Pointer< name)>Char> > -
\brief Get the attribute name from an OrtOpAttr.
getter/setter pair
-
OpAttr_GetTensorAttributeAsOrtValue
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtOpAttr> attribute, Pointer<Pointer< attr_tensor)>OrtValue> > -
\brief Get the OrtNode's 'TENSOR' attribute as an OrtValue.
getter/setter pair
-
OpAttr_GetType
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtOpAttr> attribute, Pointer<UnsignedInt> type)> -
\brief Get the attribute type as OrtOpAttrType from an OrtOpAttr.
getter/setter pair
-
ReadOpAttr
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtOpAttr> op_attr, UnsignedInt type, Pointer<Void> data, Size len, Pointer<Size> out)> -
Read contents of an attribute to data
getter/setter pair
-
RegisterAllocator
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<OrtAllocator> allocator)> -
\brief Register a custom allocator
getter/setter pair
-
RegisterCustomOpsLibrary
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Char> library_path, Pointer<Pointer< library_handle)>Void> > -
\deprecated Use OrtApi::RegisterCustomOpsLibrary_V2.
getter/setter pair
-
RegisterCustomOpsLibrary_V2
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Char> library_name)> -
\brief Register custom ops from a shared library.
getter/setter pair
-
RegisterCustomOpsUsingFunction
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Char> registration_func_name)> -
\brief Register custom ops by calling a RegisterCustomOpsFn function.
getter/setter pair
-
RegisterExecutionProviderLibrary
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<Char> registration_name, Pointer<Char> path)> -
\brief Register an execution provider library with ORT.
getter/setter pair
-
ReleaseAllocator
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtAllocator> input)> -
\brief Release an ::OrtAllocator obtained from OrtApi::CreateAllocator
getter/setter pair
-
ReleaseArenaCfg
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtArenaCfg> input)> -
getter/setter pair
-
ReleaseAvailableProviders
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >Pointer< ptr, Int providers_length)>Char> > -
\brief Release data from OrtApi::GetAvailableProviders. This API will never fail
so you can rely on it in a noexcept code.
getter/setter pair
-
ReleaseCANNProviderOptions
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtCANNProviderOptions> input)> -
\brief Release an OrtCANNProviderOptions
getter/setter pair
-
ReleaseCUDAProviderOptions
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtCUDAProviderOptionsV2> input)> -
\brief Release an ::OrtCUDAProviderOptionsV2
getter/setter pair
-
ReleaseCustomOpDomain
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtCustomOpDomain> input)> -
@}
\name OrtCustomOpDomain
@{
getter/setter pair
-
ReleaseDeviceEpIncompatibilityDetails
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtDeviceEpIncompatibilityDetails> input)> -
\brief Release an OrtDeviceEpIncompatibilityDetails instance.
getter/setter pair
-
ReleaseDnnlProviderOptions
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtDnnlProviderOptions> input)> -
\brief Release an ::OrtDnnlProviderOptions
getter/setter pair
-
ReleaseEnv
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtEnv> input)> -
@}
\name OrtEnv
@{
getter/setter pair
-
ReleaseExternalInitializerInfo
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtExternalInitializerInfo> input)> -
\brief Release an OrtExternalInitializerInfo instance.
getter/setter pair
-
ReleaseGraph
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtGraph> input)> -
\brief Release an OrtGraph.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.22.
getter/setter pair
-
ReleaseIoBinding
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtIoBinding> input)> -
\brief Release an ::OrtIoBinding obtained from OrtApi::CreateIoBinding
getter/setter pair
-
ReleaseKernelInfo
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtKernelInfo> input)> -
\brief: Release kernel info
getter/setter pair
-
ReleaseKeyValuePairs
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtKeyValuePairs> input)> -
\brief Release an OrtKeyValuePairs instance.
getter/setter pair
-
ReleaseLoraAdapter
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtLoraAdapter> input)> -
\brief Release an ::OrtLoraAdapter obtained from OrtApi::CreateLoraAdapter
getter/setter pair
-
ReleaseMapTypeInfo
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtMapTypeInfo> input)> -
@}
\name OrtMapTypeInfo
@{
getter/setter pair
-
ReleaseMemoryInfo
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtMemoryInfo> input)> -
@}
\name OrtMemoryInfo
@{
getter/setter pair
-
ReleaseModel
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtModel> input)> -
\brief Release an OrtModel.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.22.
getter/setter pair
-
ReleaseModelMetadata
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtModelMetadata> input)> -
getter/setter pair
-
ReleaseNode
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtNode> input)> -
\brief Release an OrtNode if it was not added to an OrtGraph.
\since Version 1.22.
getter/setter pair
-
ReleaseOp
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtOp> input)> -
\brief: Release an onnxruntime operator
getter/setter pair
-
ReleaseOpAttr
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtOpAttr> input)> -
\brief: Release op attribute
getter/setter pair
-
ReleasePrepackedWeightsContainer
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtPrepackedWeightsContainer> input)> -
\brief Release OrtPrepackedWeightsContainer instance
getter/setter pair
-
ReleaseROCMProviderOptions
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtROCMProviderOptions> input)> -
\brief Release an ::OrtROCMProviderOptions
getter/setter pair
-
ReleaseRunOptions
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtRunOptions> input)> -
@}
\name OrtRunOptions
@{
getter/setter pair
-
ReleaseSequenceTypeInfo
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtSequenceTypeInfo> input)> -
@}
\name OrtSequenceTypeInfo
@{
getter/setter pair
-
ReleaseSession
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtSession> input)> -
Don't call ReleaseSession from Dllmain (because session owns a thread pool)
getter/setter pair
-
ReleaseSessionOptions
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtSessionOptions> input)> -
@}
\name OrtSessionOptions
@{
getter/setter pair
-
\brief Release a shared allocator from the OrtEnv for the OrtEpDevice and memory type.
getter/setter pair
-
ReleaseStatus
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtStatus> input)> -
@}
\name OrtStatus
@{
getter/setter pair
-
ReleaseSyncStream
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtSyncStream> input)> -
getter/setter pair
-
ReleaseTensorRTProviderOptions
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtTensorRTProviderOptionsV2> input)> -
\brief Release an ::OrtTensorRTProviderOptionsV2
getter/setter pair
-
ReleaseTensorTypeAndShapeInfo
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtTensorTypeAndShapeInfo> input)> -
@}
\name OrtTensorTypeAndShapeInfo
@{
getter/setter pair
-
ReleaseThreadingOptions
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtThreadingOptions> input)> -
getter/setter pair
-
ReleaseTypeInfo
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtTypeInfo> input)> -
@}
\name OrtTypeInfo
@{
getter/setter pair
-
ReleaseValue
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtValue> input)> -
@}
\name OrtValue
@{
getter/setter pair
-
ReleaseValueInfo
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtValueInfo> input)> -
\brief Release an OrtValueInfo instance if it was not added to an OrtGraph.
\since Version 1.22.
getter/setter pair
-
RemoveKeyValuePair
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtKeyValuePairs> kvps, Pointer<Char> key)> -
\brief Remove a key-value pair from the OrtKeyValuePairs instance.
getter/setter pair
-
Run
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<OrtRunOptions> run_options, Pointer<Pointer< input_names, Pointer<Char> >Pointer< inputs, Size input_len, Pointer<OrtValue> >Pointer< output_names, Size output_names_len, Pointer<Char> >Pointer< outputs)>OrtValue> > -
\brief Run the model in an ::OrtSession
getter/setter pair
-
RunAsync
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<OrtRunOptions> run_options, Pointer<Pointer< input_names, Pointer<Char> >Pointer< input, Size input_len, Pointer<OrtValue> >Pointer< output_names, Size output_names_len, Pointer<Char> >Pointer< output, RunAsyncCallbackFn run_async_callback, Pointer<OrtValue> >Void> user_data)> -
\brief Run the model asynchronously in a thread owned by intra op thread pool
getter/setter pair
-
RunOptionsAddActiveLoraAdapter
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtRunOptions> options, Pointer<OrtLoraAdapter> adapter)> -
\brief Add the Lora Adapter to the list of active adapters.
getter/setter pair
-
RunOptionsGetRunLogSeverityLevel
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtRunOptions> options, Pointer<Int> log_severity_level)> -
\brief Get per-run log severity level
getter/setter pair
-
RunOptionsGetRunLogVerbosityLevel
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtRunOptions> options, Pointer<Int> log_verbosity_level)> -
\brief Get per-run log verbosity level
getter/setter pair
-
RunOptionsGetRunTag
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtRunOptions> options, Pointer<Pointer< run_tag)>Char> > -
\brief Get per-run tag
getter/setter pair
-
RunOptionsSetRunLogSeverityLevel
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtRunOptions> options, Int log_severity_level)> -
\brief Set per-run log severity level
getter/setter pair
-
RunOptionsSetRunLogVerbosityLevel
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtRunOptions> options, Int log_verbosity_level)> -
\brief Set per-run log verbosity level
getter/setter pair
-
RunOptionsSetRunTag
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtRunOptions> options, Pointer<Char> run_tag)> -
\brief Set per-run tag
getter/setter pair
-
RunOptionsSetSyncStream
↔ Pointer<
NativeFunction< Void Function(Pointer< >OrtRunOptions> options, Pointer<OrtSyncStream> sync_stream)> -
\brief Sets OrtSyncStream for the run options
getter/setter pair
-
RunOptionsSetTerminate
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtRunOptions> options)> -
\brief Set terminate flag
getter/setter pair
-
RunOptionsUnsetTerminate
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtRunOptions> options)> -
\brief Clears the terminate flag
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
RunWithBinding
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<OrtRunOptions> run_options, Pointer<OrtIoBinding> binding_ptr)> -
\brief Run a model using Io Bindings for the inputs & outputs
getter/setter pair
-
Session_GetEpGraphAssignmentInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<Pointer< ep_subgraphs, Pointer<Pointer< >OrtEpAssignedSubgraph> >Size> num_ep_subgraphs)> -
\brief Get information about the subgraphs assigned to each execution provider (EP) and the nodes within.
getter/setter pair
-
SessionEndProfiling
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<OrtAllocator> allocator, Pointer<Pointer< out)>Char> > -
\brief End profiling and return filename of the profile data
getter/setter pair
-
SessionGetEpDeviceForInputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<Pointer< inputs_ep_devices, Size num_inputs)>OrtEpDevice> > -
\brief Get the OrtEpDevice (if available) for each input of the session.
getter/setter pair
-
SessionGetEpDeviceForOutputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<Pointer< outputs_ep_devices, Size num_outputs)>OrtEpDevice> > -
\brief Get the EP device assigned to each session output.
getter/setter pair
-
SessionGetInputCount
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<Size> out)> -
\brief Get input count for a session
getter/setter pair
-
SessionGetInputName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Size index, Pointer<OrtAllocator> allocator, Pointer<Pointer< value)>Char> > -
\brief Get input name
getter/setter pair
-
SessionGetInputTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Size index, Pointer<Pointer< type_info)>OrtTypeInfo> > -
\brief Get input type information
getter/setter pair
-
SessionGetMemoryInfoForInputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<Pointer< inputs_memory_info, Size num_inputs)>OrtMemoryInfo> > -
\brief Get the OrtMemoryInfo for each input of the session.
getter/setter pair
-
SessionGetMemoryInfoForOutputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<Pointer< outputs_memory_info, Size num_outputs)>OrtMemoryInfo> > -
\brief Get the OrtMemoryInfo for each output of the session.
getter/setter pair
-
SessionGetModelMetadata
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<Pointer< out)>OrtModelMetadata> > -
\brief Get ::OrtModelMetadata from an ::OrtSession
getter/setter pair
-
SessionGetOutputCount
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<Size> out)> -
\brief Get output count for a session
getter/setter pair
-
SessionGetOutputName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Size index, Pointer<OrtAllocator> allocator, Pointer<Pointer< value)>Char> > -
\brief Get output name
getter/setter pair
-
SessionGetOutputTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Size index, Pointer<Pointer< type_info)>OrtTypeInfo> > -
\brief Get output type information
getter/setter pair
-
SessionGetOverridableInitializerCount
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<Size> out)> -
\brief Get overridable initializer count
getter/setter pair
-
SessionGetOverridableInitializerName
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Size index, Pointer<OrtAllocator> allocator, Pointer<Pointer< value)>Char> > -
\brief Get overridable initializer name
getter/setter pair
-
SessionGetOverridableInitializerTypeInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Size index, Pointer<Pointer< type_info)>OrtTypeInfo> > -
\brief Get overridable initializer type information
getter/setter pair
-
SessionGetProfilingStartTimeNs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> session, Pointer<Uint64> out)> -
\brief Return the time that profiling was started
getter/setter pair
-
SessionOptionsAppendExecutionProvider
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Char> provider_name, Pointer<Pointer< provider_options_keys, Pointer<Char> >Pointer< provider_options_values, Size num_keys)>Char> > -
\brief: Append execution provider to the session options.
\param
inoptions \paraminprovider_name - provider to add. \paraminprovider_options_keys - keys to configure the provider options \paraminprovider_options_values - values to configure the provider options \paraminnum_keys - number of keys passed ingetter/setter pair -
SessionOptionsAppendExecutionProvider_CANN
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<OrtCANNProviderOptions> cann_options)> -
\brief Append CANN provider to session options
getter/setter pair
-
SessionOptionsAppendExecutionProvider_CUDA
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<OrtCUDAProviderOptions> cuda_options)> -
\brief Append CUDA provider to session options
getter/setter pair
-
SessionOptionsAppendExecutionProvider_CUDA_V2
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<OrtCUDAProviderOptionsV2> cuda_options)> -
\brief Append CUDA execution provider to the session options
getter/setter pair
-
SessionOptionsAppendExecutionProvider_Dnnl
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<OrtDnnlProviderOptions> dnnl_options)> -
\brief Append dnnl provider to session options
getter/setter pair
-
SessionOptionsAppendExecutionProvider_MIGraphX
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<OrtMIGraphXProviderOptions> migraphx_options)> -
\brief Append MIGraphX provider to session options
getter/setter pair
-
SessionOptionsAppendExecutionProvider_OpenVINO
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<OrtOpenVINOProviderOptions> provider_options)> -
\brief Append OpenVINO execution provider to the session options
getter/setter pair
-
SessionOptionsAppendExecutionProvider_OpenVINO_V2
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Pointer< provider_options_keys, Pointer<Char> >Pointer< provider_options_values, Size num_keys)>Char> > -
\brief Append OpenVINO execution provider to the session options
getter/setter pair
-
SessionOptionsAppendExecutionProvider_ROCM
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<OrtROCMProviderOptions> rocm_options)> -
\brief Append ROCM execution provider to the session options
getter/setter pair
-
SessionOptionsAppendExecutionProvider_TensorRT
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<OrtTensorRTProviderOptions> tensorrt_options)> -
\brief Append TensorRT provider to session options
getter/setter pair
-
SessionOptionsAppendExecutionProvider_TensorRT_V2
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<OrtTensorRTProviderOptionsV2> tensorrt_options)> -
\brief Append TensorRT execution provider to the session options
getter/setter pair
-
SessionOptionsAppendExecutionProvider_V2
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> session_options, Pointer<OrtEnv> env, Pointer<Pointer< ep_devices, Size num_ep_devices, Pointer<OrtEpDevice> >Pointer< ep_option_keys, Pointer<Char> >Pointer< ep_option_vals, Size num_ep_options)>Char> > -
\brief Append the execution provider that is responsible for the selected OrtEpDevice instances
to the session options.
getter/setter pair
-
SessionOptionsAppendExecutionProvider_VitisAI
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Pointer< provider_options_keys, Pointer<Char> >Pointer< provider_options_values, Size num_keys)>Char> > -
\brief Append VitisAI provider to session options
getter/setter pair
-
SessionOptionsSetCustomCreateThreadFn
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, OrtCustomCreateThreadFn ort_custom_create_thread_fn)> -
\name SessionOptions
@{
/** \brief Set custom thread creation function
*
getter/setter pair
-
SessionOptionsSetCustomJoinThreadFn
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, OrtCustomJoinThreadFn ort_custom_join_thread_fn)> -
\brief Set custom thread join function
getter/setter pair
-
SessionOptionsSetCustomThreadCreationOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Void> ort_custom_thread_creation_options)> -
\brief Set creation options for custom thread
getter/setter pair
-
SessionOptionsSetEpSelectionPolicy
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> session_options, UnsignedInt policy)> -
\brief Set the execution provider selection policy for the session.
getter/setter pair
-
SessionOptionsSetEpSelectionPolicyDelegate
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> session_options, EpSelectionDelegate delegate, Pointer<Void> delegate_state)> -
\brief Set the execution provider selection policy delegate for the session.
getter/setter pair
-
SessionOptionsSetLoadCancellationFlag
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Bool cancel)> -
\brief sets load cancellation flag to abort session loading process.
getter/setter pair
-
SetCurrentGpuDeviceId
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Int device_id)> > -
\brief Set current GPU device ID
getter/setter pair
-
SetDeterministicCompute
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Bool value)> -
\brief Set whether to use deterministic compute.
getter/setter pair
-
SetDimensions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTensorTypeAndShapeInfo> info, Pointer<Int64> dim_values, Size dim_count)> -
\brief Set shape information in ::OrtTensorTypeAndShapeInfo
getter/setter pair
-
SetEpDynamicOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSession> sess, Pointer<Pointer< keys, Pointer<Char> >Pointer< values, Size kv_len)>Char> > -
\brief Set DynamicOptions for EPs (Execution Providers)
getter/setter pair
-
SetGlobalCustomCreateThreadFn
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtThreadingOptions> tp_options, OrtCustomCreateThreadFn ort_custom_create_thread_fn)> -
\name OrtThreadingOptions
@{
/** \brief Set custom thread creation function for global thread pools
*
getter/setter pair
-
SetGlobalCustomJoinThreadFn
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtThreadingOptions> tp_options, OrtCustomJoinThreadFn ort_custom_join_thread_fn)> -
\brief Set custom thread join function for global thread pools
getter/setter pair
-
SetGlobalCustomThreadCreationOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtThreadingOptions> tp_options, Pointer<Void> ort_custom_thread_creation_options)> -
\brief Set custom thread creation options for global thread pools
getter/setter pair
-
SetGlobalDenormalAsZero
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtThreadingOptions> tp_options)> -
\brief Set threading flush-to-zero and denormal-as-zero
getter/setter pair
-
SetGlobalInterOpNumThreads
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtThreadingOptions> tp_options, Int inter_op_num_threads)> -
\brief Set global inter-op thread count
getter/setter pair
-
SetGlobalIntraOpNumThreads
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtThreadingOptions> tp_options, Int intra_op_num_threads)> -
\brief Set global intra-op thread count
getter/setter pair
-
SetGlobalIntraOpThreadAffinity
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtThreadingOptions> tp_options, Pointer<Char> affinity_string)> -
\brief Set affinities for intra op threads
getter/setter pair
-
SetGlobalSpinControl
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtThreadingOptions> tp_options, Int allow_spinning)> -
\brief Set global spin control options
getter/setter pair
-
SetInterOpNumThreads
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Int inter_op_num_threads)> -
\brief Sets the number of threads used to parallelize the execution of the graph
getter/setter pair
-
SetIntraOpNumThreads
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Int intra_op_num_threads)> -
\brief Sets the number of threads used to parallelize the execution within nodes
getter/setter pair
-
SetLanguageProjection
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> ort_env, UnsignedInt projection)> -
\brief Set language projection
getter/setter pair
-
SetOptimizedModelFilePath
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Char> optimized_model_filepath)> -
\brief Set filepath to save optimized model after graph level transformations
getter/setter pair
-
SetSessionExecutionMode
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, UnsignedInt execution_mode)> -
\brief Set execution mode
getter/setter pair
-
SetSessionGraphOptimizationLevel
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, UnsignedInt graph_optimization_level)> -
\brief Set the optimization level to apply when loading a graph
getter/setter pair
-
SetSessionLogId
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Pointer<Char> logid)> -
\brief Set session log id
getter/setter pair
-
SetSessionLogSeverityLevel
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Int session_log_severity_level)> -
\brief Set session log severity level
getter/setter pair
-
SetSessionLogVerbosityLevel
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, Int session_log_verbosity_level)> -
\brief Set session log verbosity level
getter/setter pair
-
SetSymbolicDimensions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTensorTypeAndShapeInfo> info, Pointer<Pointer< dim_params, Size dim_params_length)>Char> > -
Set symbolic shape to type shape info
getter/setter pair
-
SetTensorElementType
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTensorTypeAndShapeInfo> info, UnsignedInt type)> -
\brief Set element type in ::OrtTensorTypeAndShapeInfo
getter/setter pair
-
SetUserLoggingFunction
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtSessionOptions> options, OrtLoggingFunction user_logging_function, Pointer<Void> user_logging_param)> -
\brief Set user logging function
getter/setter pair
-
ShapeInferContext_GetAttribute
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtShapeInferContext> context, Pointer<Char> attr_name, Pointer<Pointer< attr)>OrtOpAttr> > -
Get attribute from OrtShapeInferContext. Note that OrtShapeInferContext is a per-node context, one could only read attribute from current node.
getter/setter pair
-
ShapeInferContext_GetInputCount
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtShapeInferContext> context, Pointer<Size> out)> -
Get number of input from OrtShapeInferContext
getter/setter pair
-
ShapeInferContext_GetInputTypeShape
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtShapeInferContext> context, Size index, Pointer<Pointer< info)>OrtTensorTypeAndShapeInfo> > -
Get type and shape info of an input
getter/setter pair
-
ShapeInferContext_SetOutputTypeShape
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtShapeInferContext> context, Size index, Pointer<OrtTensorTypeAndShapeInfo> info)> -
Set type and shape info of an output
getter/setter pair
-
SynchronizeBoundInputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtIoBinding> binding_ptr)> -
\brief Synchronize bound inputs. The call may be necessary for some providers, such as cuda,
in case the system that allocated bound memory operated on a different stream. However, the
operation is provider specific and could be a no-op.
getter/setter pair
-
SynchronizeBoundOutputs
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtIoBinding> binding_ptr)> -
\brief Synchronize bound outputs. The call may be necessary for some providers, such as cuda,
in case the system that allocated bound memory operated on a different stream. However, the
operation is provider specific and could be a no-op.
getter/setter pair
-
SyncStream_GetHandle
↔ Pointer<
NativeFunction< Pointer< >Void> Function(Pointer<OrtSyncStream> stream)> -
\brief Get the native handle of the sync stream.
getter/setter pair
-
TensorAt
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> value, Pointer<Int64> location_values, Size location_values_count, Pointer<Pointer< out)>Void> > -
\brief Direct memory access to a specified tensor element
getter/setter pair
-
TensorTypeAndShape_HasShape
↔ Pointer<
NativeFunction< Bool Function(Pointer< >OrtTensorTypeAndShapeInfo> info)> -
@}
/** \brief Fetch whether the tensor has shape information.
getter/setter pair
-
UnregisterAllocator
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<OrtMemoryInfo> mem_info)> -
\brief Unregister a custom allocator
getter/setter pair
-
UnregisterExecutionProviderLibrary
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> env, Pointer<Char> registration_name)> -
\brief Unregister an execution provider library with ORT.
getter/setter pair
-
UpdateCANNProviderOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtCANNProviderOptions> cann_options, Pointer<Pointer< provider_options_keys, Pointer<Char> >Pointer< provider_options_values, Size num_keys)>Char> > -
\brief Set options in a CANN Execution Provider.
getter/setter pair
-
UpdateCUDAProviderOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtCUDAProviderOptionsV2> cuda_options, Pointer<Pointer< provider_options_keys, Pointer<Char> >Pointer< provider_options_values, Size num_keys)>Char> > -
\brief Set options in a CUDA Execution Provider.
getter/setter pair
-
UpdateCUDAProviderOptionsWithValue
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtCUDAProviderOptionsV2> cuda_options, Pointer<Char> key, Pointer<Void> value)> -
Update CUDA EP provider option where its data type is pointer, for example 'user_compute_stream'.
If the data type of the provider option can be represented by string please use UpdateCUDAProviderOptions.
getter/setter pair
-
UpdateDnnlProviderOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtDnnlProviderOptions> dnnl_options, Pointer<Pointer< provider_options_keys, Pointer<Char> >Pointer< provider_options_values, Size num_keys)>Char> > -
\brief Set options in a oneDNN Execution Provider.
getter/setter pair
-
UpdateEnvWithCustomLogLevel
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtEnv> ort_env, UnsignedInt log_severity_level)> -
\brief Update the OrtEnv instance with custom log severity level
getter/setter pair
-
UpdateROCMProviderOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtROCMProviderOptions> rocm_options, Pointer<Pointer< provider_options_keys, Pointer<Char> >Pointer< provider_options_values, Size num_keys)>Char> > -
\brief Set options in a ROCm Execution Provider.
getter/setter pair
-
UpdateTensorRTProviderOptions
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTensorRTProviderOptionsV2> tensorrt_options, Pointer<Pointer< provider_options_keys, Pointer<Char> >Pointer< provider_options_values, Size num_keys)>Char> > -
\brief Set options in a TensorRT Execution Provider.
getter/setter pair
-
UpdateTensorRTProviderOptionsWithValue
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtTensorRTProviderOptionsV2> tensorrt_options, Pointer<Char> key, Pointer<Void> value)> -
Update TensorRT EP provider option where its data type is pointer, for example 'user_compute_stream'.
If the data type of the provider option can be represented by string please use UpdateTensorRTProviderOptions.
getter/setter pair
-
UseBlockSparseIndices
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> ort_value, Pointer<Int64> indices_shape, Size indices_shape_len, Pointer<Int32> indices_data)> -
The assigns BlockSparse format indices to the SparseTensor that was created by
OrtApi::CreateSparseTensorWithValuesAsOrtValue above. It also sets OrtSparseFormat to
ORT_SPARSE_BLOCK_SPARSE. This will not allocate any additional memory for data. The life span of
indices_data buffer must eclipse the lifespan of this ::OrtValue.
getter/setter pair
-
UseCooIndices
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> ort_value, Pointer<Int64> indices_data, Size indices_num)> -
This assigns Coo format indices to the SparseTensor that was created by
OrtApi::CreateSparseTensorWithValuesAsOrtValue above. It also sets OrtSparseFormat to
ORT_SPARSE_COO. This will not allocate any additional memory for data. The life span of
indices_data buffer should eclipse the life span of this ::OrtValue.
getter/setter pair
-
UseCsrIndices
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValue> ort_value, Pointer<Int64> inner_data, Size inner_num, Pointer<Int64> outer_data, Size outer_num)> -
The assigns CSR format indices to the SparseTensor that was created by
OrtApi::CreateSparseTensorWithValuesAsOrtValue above. It also sets OrtSparseFormat to
ORT_SPARSE_CSRC. This will not allocate any additional memory for data. The life spans of
inner_data and outer_data buffers should eclipse the life span of this ::OrtValue.
getter/setter pair
-
ValueInfo_GetExternalInitializerInfo
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValueInfo> value_info, Pointer<Pointer< info)>OrtExternalInitializerInfo> > -
\brief Get information about an external initializer (e.g., filepath, file offset, byte size).
getter/setter pair
-
ValueInfo_GetInitializerValue
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValueInfo> value_info, Pointer<Pointer< initializer_value)>OrtValue> > -
\brief Get the underlying initializer value, as an OrtValue, from the given OrtValueInfo.
getter/setter pair
-
ValueInfo_GetValueConsumers
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValueInfo> value_info, Pointer<Pointer< nodes, Pointer<OrtNode> >Int64> input_indices, Size num_consumers)> -
\brief Returns information (OrtNode and input index) for all consumer nodes that use the value as an input.
getter/setter pair
-
ValueInfo_GetValueNumConsumers
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValueInfo> value_info, Pointer<Size> num_consumers)> -
\brief Get the number of consumers of a value as a node input.
getter/setter pair
-
ValueInfo_GetValueProducer
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValueInfo> value_info, Pointer<Pointer< producer_node, Pointer<OrtNode> >Size> producer_output_index)> -
\brief Get the OrtNode that produces the value represented by the given OrtValueInfo.
Optionally returns the associated output index.
getter/setter pair
-
ValueInfo_IsConstantInitializer
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValueInfo> value_info, Pointer<Bool> is_constant_initializer)> -
\brief Returns a boolean indicating if the given value is a constant initializer.
getter/setter pair
-
ValueInfo_IsFromOuterScope
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValueInfo> value_info, Pointer<Bool> is_from_outer_scope)> -
\brief Returns a boolean indicating if the given value is defined in an outer scope.
getter/setter pair
-
ValueInfo_IsGraphOutput
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValueInfo> value_info, Pointer<Bool> is_graph_output)> -
\brief Returns a boolean indicating if the given value is a graph output.
getter/setter pair
-
ValueInfo_IsOptionalGraphInput
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValueInfo> value_info, Pointer<Bool> is_optional_graph_input)> -
\brief Returns a boolean indicating if the given value is an optional graph input.
getter/setter pair
-
ValueInfo_IsRequiredGraphInput
↔ Pointer<
NativeFunction< OrtStatusPtr Function(Pointer< >OrtValueInfo> value_info, Pointer<Bool> is_required_graph_input)> -
\brief Returns a boolean indicating if the given value is a required graph input.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited