HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ort::MemoryInfo Struct Reference

Wrapper around OrtMemoryInfo. More...

#include <onnxruntime_cxx_api.h>

+ Inheritance diagram for Ort::MemoryInfo:

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 ()
 
Baseoperator= (const Base &)=delete
 
Baseoperator= (Base &&v) noexcept
 
constexpr operator contained_type * () const noexcept
 
contained_typerelease ()
 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_typep_
 

Detailed Description

Wrapper around OrtMemoryInfo.

Definition at line 818 of file onnxruntime_cxx_api.h.

Constructor & Destructor Documentation

Ort::MemoryInfo::MemoryInfo ( std::nullptr_t  )
inlineexplicit

No instance is created.

Definition at line 820 of file onnxruntime_cxx_api.h.

Ort::MemoryInfo::MemoryInfo ( OrtMemoryInfo p)
inlineexplicit

Definition at line 821 of file onnxruntime_cxx_api.h.

Member Function Documentation

MemoryInfo Ort::MemoryInfo::CreateCpu ( OrtAllocatorType  type,
OrtMemType  mem_type1 
)
inlinestatic

Definition at line 231 of file onnxruntime_cxx_inline.h.

ConstMemoryInfo Ort::MemoryInfo::GetConst ( ) const
inline

Take ownership of a pointer created by C Api.

Definition at line 823 of file onnxruntime_cxx_api.h.


The documentation for this struct was generated from the following files: