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

#include <ortdevice.h>

Classes

struct  MemType
 

Public Types

using DeviceType = int8_t
 
using MemoryType = int8_t
 
using DeviceId = int16_t
 

Public Member Functions

constexpr OrtDevice (DeviceType device_type_, MemoryType memory_type_, DeviceId device_id_)
 
constexpr OrtDevice ()
 
DeviceType Type () const
 
MemoryType MemType () const
 
DeviceId Id () const
 
std::string ToString () const
 
size_t Hash () const
 
bool operator< (const OrtDevice &other) const
 

Static Public Attributes

static const DeviceType CPU = 0
 
static const DeviceType GPU = 1
 
static const DeviceType FPGA = 2
 
static const DeviceType NPU = 3
 

Detailed Description

Definition at line 10 of file ortdevice.h.

Member Typedef Documentation

using OrtDevice::DeviceId = int16_t

Definition at line 13 of file ortdevice.h.

using OrtDevice::DeviceType = int8_t

Definition at line 11 of file ortdevice.h.

using OrtDevice::MemoryType = int8_t

Definition at line 12 of file ortdevice.h.

Constructor & Destructor Documentation

constexpr OrtDevice::OrtDevice ( DeviceType  device_type_,
MemoryType  memory_type_,
DeviceId  device_id_ 
)
inline

Definition at line 29 of file ortdevice.h.

constexpr OrtDevice::OrtDevice ( )
inline

Definition at line 34 of file ortdevice.h.

Member Function Documentation

size_t OrtDevice::Hash ( ) const
inline

Definition at line 59 of file ortdevice.h.

DeviceId OrtDevice::Id ( ) const
inline

Definition at line 44 of file ortdevice.h.

MemoryType OrtDevice::MemType ( ) const
inline

Definition at line 40 of file ortdevice.h.

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

Definition at line 67 of file ortdevice.h.

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

Definition at line 48 of file ortdevice.h.

DeviceType OrtDevice::Type ( ) const
inline

Definition at line 36 of file ortdevice.h.

Member Data Documentation

const DeviceType OrtDevice::CPU = 0
static

Definition at line 16 of file ortdevice.h.

const DeviceType OrtDevice::FPGA = 2
static

Definition at line 18 of file ortdevice.h.

const DeviceType OrtDevice::GPU = 1
static

Definition at line 17 of file ortdevice.h.

const DeviceType OrtDevice::NPU = 3
static

Definition at line 19 of file ortdevice.h.


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