aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortxh18 <[email protected]>2015-11-09 11:54:49 +0800
committertxh18 <[email protected]>2015-11-09 11:54:49 +0800
commit4904c1c6e55454bb104c70c3b10931bd67519980 (patch)
tree14c8a11ddd4576cfacdd18c542fdce0349fceac0
parentc5ac43f67a318f76faec9837307a15169a80cc39 (diff)
another bit error bug found
-rw-r--r--nerv/examples/lmptb/m-tests/tnn_test.lua2
1 files changed, 1 insertions, 1 deletions
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