HDK
|
Wrapper around OrtMemoryInfo. More...
#include <onnxruntime_cxx_api.h>
Public Member Functions | |
MemoryInfo (std::nullptr_t) | |
No instance is created. More... | |
MemoryInfo (OrtMemoryInfo *p) | |
ConstMemoryInfo | GetConst () const |
Take ownership of a pointer created by C Api. More... | |
Public Member Functions inherited from Ort::detail::MemoryInfoImpl< OrtMemoryInfo > | |
std::string | GetAllocatorName () const |
OrtAllocatorType | GetAllocatorType () const |
int | GetDeviceId () const |
OrtMemoryInfoDeviceType | GetDeviceType () const |
OrtMemType | GetMemoryType () const |
bool | operator== (const MemoryInfoImpl< U > &o) const |
Public Member Functions inherited from Ort::detail::Base< OrtMemoryInfo > | |
constexpr | Base ()=default |
constexpr | Base (contained_type *p) noexcept |
Base (const Base &)=delete | |
Base (Base &&v) noexcept | |
~Base () | |
Base & | operator= (const Base &)=delete |
Base & | operator= (Base &&v) noexcept |
constexpr | operator contained_type * () const noexcept |
contained_type * | release () |
Relinquishes ownership of the contained C object pointer The underlying object is not destroyed. More... | |
Static Public Member Functions | |
static MemoryInfo | CreateCpu (OrtAllocatorType type, OrtMemType mem_type1) |
Additional Inherited Members | |
Public Types inherited from Ort::detail::MemoryInfoImpl< OrtMemoryInfo > | |
using | B = Base< OrtMemoryInfo > |
Public Types inherited from Ort::detail::Base< OrtMemoryInfo > | |
using | contained_type = OrtMemoryInfo |
Protected Attributes inherited from Ort::detail::Base< OrtMemoryInfo > | |
contained_type * | p_ |
Wrapper around OrtMemoryInfo.
Definition at line 1148 of file onnxruntime_cxx_api.h.
|
inlineexplicit |
No instance is created.
Definition at line 1150 of file onnxruntime_cxx_api.h.
|
inlineexplicit |
Definition at line 1151 of file onnxruntime_cxx_api.h.
|
inlinestatic |
Definition at line 291 of file onnxruntime_cxx_inline.h.
|
inline |
Take ownership of a pointer created by C Api.
Definition at line 1153 of file onnxruntime_cxx_api.h.