Permalink
Browse files

only flush on output

  • Loading branch information...
ypnos committed Jul 10, 2016
1 parent 029cdfd commit f8bba537716eb697e6f77661f312c2e8289b1d84
Showing with 4 additions and 2 deletions.
  1. +4 −2 som/gensom.cpp
View
@@ -36,8 +36,10 @@ void GenSOM::train(const multi_img &input, ProgressObserver *po)
// output percentage
unsigned int hundred = std::max<unsigned int>(maxIter/100, 100);
int percent = 1;
- if (config.verbosity > 0)
- std::cout << " 0 %"; std::cout.flush();
+ if (config.verbosity > 0) {
+ std::cout << " 0 %";
+ std::cout.flush();
+ }
long sumOfUpdates = 0;
// starting training (notifier needed by OpenCL impl.)

0 comments on commit f8bba53

Please sign in to comment.