Context info passing from MXNet OpContext dev_type is string repr of supported context, currently only "cpu" and "gpu" dev_id is the device index where the tensor locates.
More...
#include <lib_api.h>
Context info passing from MXNet OpContext dev_type is string repr of supported context, currently only "cpu" and "gpu" dev_id is the device index where the tensor locates.
◆ MXContext() [1/3]
mxnet::ext::MXContext::MXContext |
( |
| ) |
|
◆ MXContext() [2/3]
mxnet::ext::MXContext::MXContext |
( |
std::string |
dev_type_, |
|
|
int |
dev_id_ |
|
) |
| |
|
explicit |
◆ MXContext() [3/3]
mxnet::ext::MXContext::MXContext |
( |
const char * |
dev_type_, |
|
|
int |
dev_id_ |
|
) |
| |
|
explicit |
◆ CPU() [1/2]
static MXContext mxnet::ext::MXContext::CPU |
( |
| ) |
|
|
static |
◆ CPU() [2/2]
static MXContext mxnet::ext::MXContext::CPU |
( |
int |
dev_id | ) |
|
|
static |
◆ GPU() [1/2]
static MXContext mxnet::ext::MXContext::GPU |
( |
| ) |
|
|
static |
◆ GPU() [2/2]
static MXContext mxnet::ext::MXContext::GPU |
( |
int |
dev_id | ) |
|
|
static |
◆ dev_id
int mxnet::ext::MXContext::dev_id |
◆ dev_type
std::string mxnet::ext::MXContext::dev_type |
The documentation for this struct was generated from the following file: