AI-MXNetCAPI
view release on metacpan or search on metacpan
196197198199200201202203204205206207208209210211212213214215216*
* this function is threadsafe and can be called by different thread
* \
return
error info
*/
const char
*MXGetLastError
();
//-------------------------------------
// Part 0: Global State setups
//-------------------------------------
/*!
* \brief Seed the global random number generators in mxnet.
* \param seed the random number seed.
* \
return
0
when
success, -1
when
failure happens.
*/
int
MXRandomSeed(
int
seed);
/*!
* \brief Notify the engine about a
shutdown
,
* This can help engine to
less messages into display.
*
* User
do
not have to call this function.
* \
return
0
when
success, -1
when
failure happens.
147214731474147514761477147814791480148114821483148414851486148714881489149014911492/**
* \brief
return
whether or not this process is a scheduler node.
* \param ret 1
for
yes, 0
for
no
* \
return
0
when
success, -1
when
failure happens
*/
int
MXKVStoreIsSchedulerNode(
int
*out
);
/**
* \brief global barrier among all worker machines
*
* \param handle handle to the KVStore
* \
return
0
when
success, -1
when
failure happens
*/
int
MXKVStoreBarrier(KVStoreHandle handle);
/**
* \brief whether to
do
barrier
when
finalize
*
* \param handle handle to the KVStore
( run in 1.811 second using v1.01-cache-2.11-cpan-95122f20152 )