Class DefaultCommunicator¶
Defined in File communicator.h
Inheritance Relationships¶
Base Type¶
public marian::ICommunicator(Class ICommunicator)
Class Documentation¶
-
class
DefaultCommunicator: public marian::ICommunicator¶ Public Functions
-
DefaultCommunicator(const std::vector<Ptr<ExpressionGraph>> &graphs, Ptr<IMPIWrapper> mpi)¶
-
~DefaultCommunicator()¶
-
size_t
dataSize() const¶
-
size_t
shardSize() const¶
-
template<typename
Ret>
RetforeachAcc(const ForeachFunc<Ret> &func, const AccFunc<Ret> &acc, Ret init, bool parallel = true) const¶
-
float
foreach(const ForeachFunc<float> &func, AccFunc<float> acc, float init, bool parallel = true) const¶
-
bool
foreach(const ForeachFunc<bool> &func, bool parallel = true) const¶
-
void
scatterReduceAndResetGrads() const¶
-
void
allGatherParams() const¶
-
void
broadcastParams(bool average = false) const¶
-
virtual void
broadcastShards(const std::vector<Ptr<OptimizerBase>> &opts, bool average = false) const¶
-
void
scatterState(const io::Item &data, const OptimizerBase::ScatterStateSetFunc &setFn) const¶
-
io::Item
gatherState(const OptimizerBase::GatherStateGetFunc &getFn) const¶
-