An execution engine.
More...
#include <mkldnn.hpp>
◆ kind
Kinds of engines.
Enumerator |
---|
any | An unspecified engine.
|
cpu | CPU engine.
|
gpu | GPU engine.
|
◆ engine() [1/2]
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/2]
Constructs an engine from the primitive descriptor pd
by querying its engine.
◆ 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. |
The documentation for this struct was generated from the following file: