mirror of
https://github.com/marian-nmt/marian.git
synced 2024-11-03 20:13:47 +03:00
flushing
This commit is contained in:
parent
d177bdc3d0
commit
94bc099e6b
@ -20,12 +20,12 @@ void testForward(F f, size_t l,
|
||||
|
||||
uniform(-5, 5)(in);
|
||||
|
||||
std::cout << desc << ": ";
|
||||
std::cout << desc << ": " << std::flush;
|
||||
boost::timer::cpu_timer timer;
|
||||
for(int i = 0; i < l; ++i) {
|
||||
f(out, in);
|
||||
if(i % 100 == 0)
|
||||
std::cout << ".";
|
||||
std::cout << "." << std::flush;
|
||||
}
|
||||
std::cout << timer.format(5, "%ws") << std::endl;
|
||||
}
|
||||
@ -40,12 +40,12 @@ void testBackward(F f, size_t l,
|
||||
|
||||
uniform(-5, 5)(in);
|
||||
|
||||
std::cout << desc << ": ";
|
||||
std::cout << desc << ": " << std::flush;
|
||||
boost::timer::cpu_timer timer;
|
||||
for(int i = 0; i < l; ++i) {
|
||||
f(grad, adj, in);
|
||||
if(i % 100 == 0)
|
||||
std::cout << ".";
|
||||
std::cout << "." << std::flush;
|
||||
}
|
||||
std::cout << timer.format(5, "%ws") << std::endl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user