Initialized AllReducer counters to 0. (#3987)
This commit is contained in:
parent
93f9ce9ef9
commit
4be5edaf92
@ -851,7 +851,8 @@ class AllReducer {
|
||||
std::vector<int> device_ordinals;
|
||||
#endif
|
||||
public:
|
||||
AllReducer() : initialised_(false),debug_verbose_(false) {}
|
||||
AllReducer() : initialised_(false),debug_verbose_(false), allreduce_bytes_(0),
|
||||
allreduce_calls_(0) {}
|
||||
|
||||
/**
|
||||
* \fn void Init(const std::vector<int> &device_ordinals)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user