Closed thtb closed 7 years ago
should add "TrainerId() == 0" when logging ”doc likelihood“ and “word likelihood“?
No, the barrier_->Wait() returns true only when the last thread reach the barrier, so only one thread will satisfies this if statement and print the log.
barrier_->Wait()
I ignore that before, thanks!
should add "TrainerId() == 0" when logging ”doc likelihood“ and “word likelihood“?