An execution engine.
More...
#include <mkldnn.hpp>
|
static size_t | get_count (kind akind) |
| Returns the number of engines of a certain kind. More...
|
|
template<class primitive_desc > |
static engine | query (const primitive_desc &pd) |
|
◆ kind
Kinds of engines.
Enumerator |
---|
any | An unspecified engine.
|
cpu | CPU engine.
|
◆ engine() [1/3]
mkldnn::engine::engine |
( |
kind |
akind, |
|
|
size_t |
index |
|
) |
| |
|
inline |
Constructs an engine.
- Parameters
-
akind | The kind of engine to construct. |
index | The index of the engine. Must be less than the value returned by get_count() for this particular kind of engine. |
◆ engine() [2/3]
◆ engine() [3/3]
◆ get_count()
static size_t mkldnn::engine::get_count |
( |
kind |
akind | ) |
|
|
inlinestatic |
Returns the number of engines of a certain kind.
- Parameters
-
akind | The kind of engines to count. |
◆ query()
template<class primitive_desc >
static engine mkldnn::engine::query |
( |
const primitive_desc & |
pd | ) |
|
|
inlinestatic |
◆ primitive
The documentation for this struct was generated from the following file: