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::string& key,
const NDArray& val);
43 static void Init(
const std::vector<int>& keys,
const std::vector<NDArray>& vals);
44 static void Init(
const std::vector<std::string>& keys,
const std::vector<NDArray>& vals);
45 static void Push(
int key,
const NDArray& val,
int priority = 0);
46 static void Push(
const std::string& key,
const NDArray& val,
int priority = 0);
47 static void Push(
const std::vector<int>& keys,
48 const std::vector<NDArray>& vals,
int priority = 0);
49 static void Push(
const std::vector<std::string>& keys,
50 const std::vector<NDArray>& vals,
int priority = 0);
51 static void Pull(
int key,
NDArray* out,
int priority = 0);
52 static void Pull(
const std::string& key,
NDArray* out,
int priority = 0);
53 static void Pull(
const std::vector<int>& keys,
54 std::vector<NDArray>* outs,
int priority = 0);
55 static void Pull(
const std::vector<std::string>& keys,
56 std::vector<NDArray>* outs,
int priority = 0);
58 static void SetOptimizer(std::unique_ptr<Optimizer> optimizer,
bool local =
false);
68 static std::unique_ptr<Optimizer>& get_optimizer();
70 static void Controller(
int head,
const char* body,
void* controller_handle);
77 #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:89
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()