Commit e6d3e08
authored
Introduce new C++ API for C interfaces (microsoft#25762)
### Description
<!-- Describe your changes. -->
This PR provides C++ interfaces for the following:
Env
====
CopyTensors()
CreateSharedAllocator
GetSharedAllocator
ReleaseSharedAllocator
CreateAndRegisterAllocatorV2
RegisterAllocator
UnregisterAllocator
EpDevice
======
EpDevice_MemoryInfo
CreateSyncStreamForEpDevice
MemoryInfo
========
CreateMemoryInfo_V2
MemoryInfoGetName
MemoryInfoGetId
MemoryInfoGetMemType
MemoryInfoGetType
MemoryInfoGetDeviceMemType
MemoryInfoGetVendorId
Session
==========
SessionGetInputName
SessionGetOutputName
SessionGetMemoryInfoForInputs
SessionGetMemoryInfoForOutputs
SessionGetEpDeviceForInputs
SyncStream
===========
SyncStream_GetHandle
ReleaseSyncStream
OrtArenaCfg
===========
CreateArenaCfgV2
TRT
===
CreateTensorRTProviderOptions and V2
UpdateTensorRTProviderOptions
SessionOptions
==============
OrtSessionOptionsAppendExecutionProvider_CPU
Prepacked container
=============
CUDA Options V2
===========
OrtCUDAProviderOptionsV2
CreateCUDAProviderOptions
GetCUDAProviderOptionsByName
UpdateCUDAProviderOptionsWithValue
UpdateCUDAProviderOptions
GetCUDAProviderOptionsAsString
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Provide a way to write exception safe code.1 parent 30f865a commit e6d3e08
File tree
22 files changed
+704
-616
lines changed- include/onnxruntime/core
- graph
- session
- onnxruntime
- core/session
- python/tools/tensorrt/perf/mem_test
- test
- autoep
- contrib_ops
- global_thread_pools
- perftest
- providers
- cpu
- qnn
- util/include
22 files changed
+704
-616
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5829 | 5829 | | |
5830 | 5830 | | |
5831 | 5831 | | |
5832 | | - | |
| 5832 | + | |
5833 | 5833 | | |
5834 | 5834 | | |
5835 | 5835 | | |
| |||
Lines changed: 210 additions & 102 deletions
Large diffs are not rendered by default.
0 commit comments