DNN Device Information class.
More...
#include <Engine.hpp>
DDI(DNN Device Information) class provides information about all the available devices on which DNN models can be executed For details, refer to DNN Details.
◆ GetDevID()
| virtual const char * Evo::DDI::GetDevID |
( |
void | | ) |
const |
|
pure virtual |
Get ID of the selected DNN device.
- Returns
- Device ID
◆ GetDMDF()
| virtual const char * Evo::DDI::GetDMDF |
( |
size_t | idx | ) |
const |
|
pure virtual |
Get specific DMDF.
- Parameters
-
| [in] | idx | Index of the required DMDF. Its range is [0, Number of DMDFs). |
- Returns
- DMDF.
- Deprecated
- Don't use any more because it's deprecated.
If errors occur, surround the code with a pair of the macros 'EVO_ENABLE_DEPRECATION_WARNINGS' and 'EVO_DISABLE_DEPRECATION_WARNINGS'. For example,
EVO_ENABLE_DEPRECATION_WARNINGS
num = ddi.GetNumDMDF();
dmdf = ddi.GetDMDF(idx);
EVO_DISABLE_DEPRECATION_WARNINGS
◆ GetFullName()
| virtual const char * Evo::DDI::GetFullName |
( |
void | | ) |
const |
|
pure virtual |
Get the full name of the selected DNN device.
- Returns
- Full name.
◆ GetNumDev()
| virtual size_t Evo::DDI::GetNumDev |
( |
void | | ) |
const |
|
pure virtual |
Get number of the available DNN devices. For deatils, refer to DNN Devices.
- Returns
- Number of the devices
◆ GetNumDMDF()
| virtual size_t Evo::DDI::GetNumDMDF |
( |
void | | ) |
const |
|
pure virtual |
Get number of DMDFs supported by the selected DNN device.
- Returns
- Number of supported DMDFs
- Deprecated
- Don't use any more because it's deprecated.
If errors occur, surround the code with a pair of the macros 'EVO_ENABLE_DEPRECATION_WARNINGS' and 'EVO_DISABLE_DEPRECATION_WARNINGS'. For example,
EVO_ENABLE_DEPRECATION_WARNINGS
num = ddi.GetNumDMDF();
dmdf = ddi.GetDMDF(idx);
EVO_DISABLE_DEPRECATION_WARNINGS
◆ GetSelDev()
| virtual size_t Evo::DDI::GetSelDev |
( |
void | | ) |
const |
|
pure virtual |
Get index of the selected DNN device.
- Returns
- Device index.
◆ SelectDev()
| virtual EvoRC Evo::DDI::SelectDev |
( |
size_t | idx | ) |
|
|
pure virtual |
Select specific DNN device.
- Parameters
-
| [in] | idx | Index of the required DNN device. Its range is [0, Number of devices). |
- Returns
- EvoRC code