HDK
|
#include "onnxruntime_c_api.h"
#include <cstddef>
#include <array>
#include <memory>
#include <stdexcept>
#include <string>
#include <vector>
#include <unordered_map>
#include <utility>
#include <type_traits>
#include "onnxruntime_cxx_inline.h"
Go to the source code of this file.
Classes | |
struct | Ort::Exception |
All C++ methods that can fail will throw an exception of this type. More... | |
struct | Ort::Global< T > |
struct | Ort::Float16_t |
IEEE 754 half-precision floating point data type. More... | |
struct | Ort::BFloat16_t |
bfloat16 (Brain Floating Point) data type More... | |
struct | Ort::detail::Unowned< T > |
This is a tagging template type. Use it with Base<T> to indicate that the C++ interface object has no ownership of the underlying C object. More... | |
struct | Ort::detail::Base< T > |
Used internally by the C++ API. C++ wrapper types inherit from this. This is a zero cost abstraction to wrap the C API objects and delete them on destruction. More... | |
struct | Ort::detail::Base< Unowned< T > > |
Covers unowned pointers owned by either the ORT or some other instance of CPP wrappers. Used for ConstXXX and UnownedXXXX types that are copyable. Also convenient to wrap raw OrtXX pointers . More... | |
struct | Ort::detail::AllocatedFree |
struct | Ort::Status |
The Status that holds ownership of OrtStatus received from C API Use it to safely destroy OrtStatus* returned from the C API. Use appropriate constructors to construct an instance of a Status object from exceptions. More... | |
struct | Ort::ThreadingOptions |
The ThreadingOptions. More... | |
struct | Ort::Env |
The Env (Environment) More... | |
struct | Ort::CustomOpDomain |
Custom Op Domain. More... | |
struct | Ort::RunOptions |
RunOptions. More... | |
struct | Ort::CustomOpConfigs |
Class that represents session configuration entries for one or more custom operators. More... | |
struct | Ort::detail::ConstSessionOptionsImpl< T > |
struct | Ort::detail::SessionOptionsImpl< T > |
struct | Ort::SessionOptions |
Wrapper around ::OrtSessionOptions. More... | |
struct | Ort::ModelMetadata |
Wrapper around ::OrtModelMetadata. More... | |
struct | Ort::detail::ConstSessionImpl< T > |
struct | Ort::detail::SessionImpl< T > |
struct | Ort::Session |
Wrapper around ::OrtSession. More... | |
struct | Ort::detail::MemoryInfoImpl< T > |
struct | Ort::MemoryInfo |
Wrapper around OrtMemoryInfo. More... | |
struct | Ort::detail::TensorTypeAndShapeInfoImpl< T > |
struct | Ort::TensorTypeAndShapeInfo |
Wrapper around ::OrtTensorTypeAndShapeInfo. More... | |
struct | Ort::detail::SequenceTypeInfoImpl< T > |
struct | Ort::SequenceTypeInfo |
Wrapper around ::OrtSequenceTypeInfo. More... | |
struct | Ort::detail::MapTypeInfoImpl< T > |
struct | Ort::MapTypeInfo |
Wrapper around ::OrtMapTypeInfo. More... | |
struct | Ort::detail::TypeInfoImpl< T > |
struct | Ort::TypeInfo |
Type information that may contain either TensorTypeAndShapeInfo or the information about contained sequence or map depending on the ONNXType. More... | |
struct | Ort::detail::OrtSparseValuesParam |
struct | Ort::detail::Shape |
struct | Ort::detail::ConstValueImpl< T > |
struct | Ort::detail::ValueImpl< T > |
struct | Ort::Value |
Wrapper around OrtValue. More... | |
struct | Ort::MemoryAllocation |
Represents native memory allocation coming from one of the OrtAllocators registered with OnnxRuntime. Use it to wrap an allocation made by an allocator so it can be automatically released when no longer needed. More... | |
struct | Ort::detail::AllocatorImpl< T > |
struct | Ort::AllocatorWithDefaultOptions |
Wrapper around OrtAllocator default instance that is owned by Onnxruntime. More... | |
struct | Ort::Allocator |
Wrapper around OrtAllocator. More... | |
struct | Ort::detail::ConstIoBindingImpl< T > |
struct | Ort::detail::IoBindingImpl< T > |
struct | Ort::IoBinding |
Wrapper around ::OrtIoBinding. More... | |
struct | Ort::ArenaCfg |
it is a structure that represents the configuration of an arena based allocator More... | |
struct | Ort::OpAttr |
This struct provides life time management for custom op attribute More... | |
struct | Ort::KernelContext |
This class wraps a raw pointer OrtKernelContext* that is being passed to the custom kernel Compute() method. Use it to safely access context attributes, input and output parameters with exception safety guarantees. See usage example in onnxruntime/test/testdata/custom_op_library/custom_op_library.cc More... | |
struct | Ort::detail::KernelInfoImpl< T > |
struct | Ort::KernelInfo |
This struct owns the OrtKernInfo* pointer when a copy is made. For convenient wrapping of OrtKernelInfo* passed to kernel constructor and query attributes, warp the pointer with Ort::Unowned<KernelInfo> instance so it does not destroy the pointer the kernel does not own. More... | |
struct | Ort::Op |
Create and own custom defined operation. More... | |
struct | Ort::CustomOpApi |
This entire structure is deprecated, but we not marking it as a whole yet since we want to preserve for the next release. More... | |
struct | Ort::CustomOpBase< TOp, TKernel > |
Namespaces | |
Ort | |
All C++ Onnxruntime APIs are defined inside this namespace. | |
Ort::detail | |
Ort::detail::binding_utils | |
Ort::detail::attr_utils | |
Macros | |
#define | ORT_CXX_API_THROW(string, code) throw Ort::Exception(string, code) |
#define | ORT_DEFINE_RELEASE(NAME) inline void OrtRelease(Ort##NAME* ptr) { GetApi().Release##NAME(ptr); } |
Typedefs | |
using | Ort::AllocatedStringPtr = std::unique_ptr< char, detail::AllocatedFree > |
unique_ptr typedef used to own strings allocated by OrtAllocators and release them at the end of the scope. The lifespan of the given allocator must eclipse the lifespan of AllocatedStringPtr instance More... | |
using | Ort::UnownedSessionOptions = detail::SessionOptionsImpl< detail::Unowned< OrtSessionOptions >> |
using | Ort::ConstSessionOptions = detail::ConstSessionOptionsImpl< detail::Unowned< const OrtSessionOptions >> |
using | Ort::ConstSession = detail::ConstSessionImpl< detail::Unowned< const OrtSession >> |
using | Ort::UnownedSession = detail::SessionImpl< detail::Unowned< OrtSession >> |
using | Ort::ConstMemoryInfo = detail::MemoryInfoImpl< detail::Unowned< const OrtMemoryInfo >> |
using | Ort::ConstTensorTypeAndShapeInfo = detail::TensorTypeAndShapeInfoImpl< detail::Unowned< const OrtTensorTypeAndShapeInfo >> |
using | Ort::ConstSequenceTypeInfo = detail::SequenceTypeInfoImpl< detail::Unowned< const OrtSequenceTypeInfo >> |
using | Ort::ConstMapTypeInfo = detail::MapTypeInfoImpl< detail::Unowned< const OrtMapTypeInfo >> |
using | Ort::ConstTypeInfo = detail::TypeInfoImpl< detail::Unowned< const OrtTypeInfo >> |
Contains a constant, unowned OrtTypeInfo that can be copied and passed around by value. Provides access to const OrtTypeInfo APIs. More... | |
using | Ort::ConstValue = detail::ConstValueImpl< detail::Unowned< const OrtValue >> |
using | Ort::UnownedValue = detail::ValueImpl< detail::Unowned< OrtValue >> |
using | Ort::UnownedAllocator = detail::AllocatorImpl< detail::Unowned< OrtAllocator >> |
using | Ort::ConstIoBinding = detail::ConstIoBindingImpl< detail::Unowned< const OrtIoBinding >> |
using | Ort::UnownedIoBinding = detail::IoBindingImpl< detail::Unowned< OrtIoBinding >> |
using | Ort::ConstKernelInfo = detail::KernelInfoImpl< detail::Unowned< const OrtKernelInfo >> |
#define ORT_CXX_API_THROW | ( | string, | |
code | |||
) | throw Ort::Exception(string, code) |
Definition at line 74 of file onnxruntime_cxx_api.h.
#define ORT_DEFINE_RELEASE | ( | NAME | ) | inline void OrtRelease(Ort##NAME* ptr) { GetApi().Release##NAME(ptr); } |
Definition at line 202 of file onnxruntime_cxx_api.h.