27 #ifndef MXNET_CPP_KVSTORE_H_ 28 #define MXNET_CPP_KVSTORE_H_ 39 static void SetType(
const std::string& type);
42 static void Init(
const std::vector<int>& keys,
const std::vector<NDArray>& vals);
43 static void Push(
int key,
const NDArray& val,
int priority = 0);
44 static void Push(
const std::vector<int>& keys,
45 const std::vector<NDArray>& vals,
int priority = 0);
46 static void Pull(
int key,
NDArray* out,
int priority = 0);
47 static void Pull(
const std::vector<int>& keys, std::vector<NDArray>* outs,
int priority = 0);
49 static void SetOptimizer(std::unique_ptr<Optimizer> optimizer,
bool local =
false);
59 static std::unique_ptr<Optimizer>& get_optimizer();
61 static void Controller(
int head,
const char* body,
void* controller_handle);
68 #endif // MXNET_CPP_KVSTORE_H_ static std::string GetRole()
static void Pull(int key, NDArray *out, int priority=0)
static void Init(int key, const NDArray &val)
static void SetType(const std::string &type)
namespace of mxnet
Definition: base.h:118
static void SetOptimizer(std::unique_ptr< Optimizer > optimizer, bool local=false)
NDArray interface.
Definition: ndarray.h:121
static void Push(int key, const NDArray &val, int priority=0)
void * KVStoreHandle
handle to KVStore
Definition: c_api.h:85
void * NDArrayHandle
handle to NDArray
Definition: c_api.h:67
static int GetNumWorkers()
static std::string GetType()