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

#include <ortmemoryinfo.h>

Public Member Functions

 OrtMemoryInfo ()=default
 
constexpr OrtMemoryInfo (const char *name_, OrtAllocatorType type_, OrtDevice device_=OrtDevice(), int id_=0, OrtMemType mem_type_=OrtMemTypeDefault)
 
bool operator< (const OrtMemoryInfo &other) const
 
size_t Hash () const
 
std::string ToString () const
 

Public Attributes

const char * name = nullptr
 
int id = -1
 
OrtMemType mem_type = OrtMemTypeDefault
 
OrtAllocatorType alloc_type = OrtInvalidAllocator
 
OrtDevice device
 

Detailed Description

Definition at line 10 of file ortmemoryinfo.h.

Constructor & Destructor Documentation

OrtMemoryInfo::OrtMemoryInfo ( )
default
constexpr OrtMemoryInfo::OrtMemoryInfo ( const char *  name_,
OrtAllocatorType  type_,
OrtDevice  device_ = OrtDevice(),
int  id_ = 0,
OrtMemType  mem_type_ = OrtMemTypeDefault 
)
inline

Definition at line 20 of file ortmemoryinfo.h.

Member Function Documentation

size_t OrtMemoryInfo::Hash ( ) const
inline

Definition at line 47 of file ortmemoryinfo.h.

bool OrtMemoryInfo::operator< ( const OrtMemoryInfo other) const
inline

Definition at line 34 of file ortmemoryinfo.h.

std::string OrtMemoryInfo::ToString ( ) const
inline

Definition at line 55 of file ortmemoryinfo.h.

Member Data Documentation

OrtAllocatorType OrtMemoryInfo::alloc_type = OrtInvalidAllocator

Definition at line 17 of file ortmemoryinfo.h.

OrtDevice OrtMemoryInfo::device

Definition at line 18 of file ortmemoryinfo.h.

int OrtMemoryInfo::id = -1

Definition at line 15 of file ortmemoryinfo.h.

OrtMemType OrtMemoryInfo::mem_type = OrtMemTypeDefault

Definition at line 16 of file ortmemoryinfo.h.

const char* OrtMemoryInfo::name = nullptr

Definition at line 14 of file ortmemoryinfo.h.


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