From 267a486fb78a985cbfdc60ef8549b3128f716713 Mon Sep 17 00:00:00 2001 From: txh18 Date: Mon, 16 Nov 2015 11:44:43 +0800 Subject: fixed direct update, did not know the result --- nerv/examples/lmptb/lm_trainer.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'nerv/examples/lmptb/lm_trainer.lua') 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 -- cgit v1.2.3