From 63cd5b0ab0d2fd1693fdaec0e57b5e02ad718dfb Mon Sep 17 00:00:00 2001 From: txh18 Date: Thu, 3 Dec 2015 00:01:24 +0800 Subject: ... --- nerv/examples/lmptb/tnn/tnn.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/nerv/examples/lmptb/tnn/tnn.lua b/nerv/examples/lmptb/tnn/tnn.lua index 8cafe6a..56c9dc0 100644 --- a/nerv/examples/lmptb/tnn/tnn.lua +++ b/nerv/examples/lmptb/tnn/tnn.lua @@ -386,6 +386,7 @@ function TNN:propagate_dfs(ref, t) --ok, do propagate --print("debug ok, propagating"); + --The MB moving will cause bordering history to be changed, so it is more wise to flush the input activation if (bit.band(self.feeds_now.flagsPack_now[t], bit.bor(nerv.TNN.FC.SEQ_START, nerv.TNN.FC.SEQ_END)) > 0) then --flush cross-border history for i = 1, self.batch_size do local seq_start = bit.band(self.feeds_now.flags_now[t][i], nerv.TNN.FC.SEQ_START) -- cgit v1.2.3-70-g09d2