From 4904c1c6e55454bb104c70c3b10931bd67519980 Mon Sep 17 00:00:00 2001 From: txh18 Date: Mon, 9 Nov 2015 11:54:49 +0800 Subject: another bit error bug found --- nerv/examples/lmptb/m-tests/tnn_test.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nerv/examples/lmptb/m-tests/tnn_test.lua b/nerv/examples/lmptb/m-tests/tnn_test.lua index 276ced4..9c20914 100644 --- a/nerv/examples/lmptb/m-tests/tnn_test.lua +++ b/nerv/examples/lmptb/m-tests/tnn_test.lua @@ -164,7 +164,7 @@ function lm_process_file(global_conf, fn, tnn, do_train) for t = 1, global_conf.chunk_size do tnn.err_inputs_m[t][1]:fill(1) for i = 1, global_conf.batch_size do - if (bit.bor(feeds.flags_now[t][i], nerv.TNN.FC.HAS_LABEL) == 0) then + if (bit.band(feeds.flags_now[t][i], nerv.TNN.FC.HAS_LABEL) == 0) then tnn.err_inputs_m[t][1][i][0] = 0 end end -- cgit v1.2.3