diff options
author | txh18 <cloudygooseg@gmail.com> | 2015-11-16 11:44:43 +0800 |
---|---|---|
committer | txh18 <cloudygooseg@gmail.com> | 2015-11-16 11:44:43 +0800 |
commit | 267a486fb78a985cbfdc60ef8549b3128f716713 (patch) | |
tree | c60697e60ef5053203b5148cb3f0bfbf88a81c94 /nerv/examples/lmptb/lm_trainer.lua | |
parent | ef40688d5a0a3b7eae18dc364a40ae4e8e7619e7 (diff) |
fixed direct update, did not know the result
Diffstat (limited to 'nerv/examples/lmptb/lm_trainer.lua')
-rw-r--r-- | nerv/examples/lmptb/lm_trainer.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nerv/examples/lmptb/lm_trainer.lua b/nerv/examples/lmptb/lm_trainer.lua index 226873b..2be97c8 100644 --- a/nerv/examples/lmptb/lm_trainer.lua +++ b/nerv/examples/lmptb/lm_trainer.lua @@ -16,6 +16,7 @@ function LMTrainer.lm_process_file(global_conf, fn, tnn, do_train) local result = nerv.LMResult(global_conf, global_conf.vocab) result:init("rnn") + global_conf.timer:flush() tnn:flush_all() --caution: will also flush the inputs from the reader! local next_log_wcn = global_conf.log_w_num |