aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortxh18 <[email protected]>2015-12-22 14:00:39 +0800
committertxh18 <[email protected]>2015-12-22 14:00:39 +0800
commit7157b942729ace5d351fbb682de52b6a00527ee7 (patch)
treefb1043a9f2518d7de9a89da2d3d04f725b32fb26
parent9a172678f824351840283363161e8b38d2d5cfb2 (diff)
...
-rw-r--r--nerv/examples/lmptb/lmptb/layer/select_linear.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/nerv/examples/lmptb/lmptb/layer/select_linear.lua b/nerv/examples/lmptb/lmptb/layer/select_linear.lua
index 431ef3a..4214533 100644
--- a/nerv/examples/lmptb/lmptb/layer/select_linear.lua
+++ b/nerv/examples/lmptb/lmptb/layer/select_linear.lua
@@ -37,7 +37,7 @@ function SL:update(bp_err, input, output)
--end
--I tried the update_select_rows kernel which uses atomicAdd, but it generates unreproducable result
- self.ltp.trans:update_select_rows(bp_err[1], input[1]:trans(), - self.gconf.lrate / self.gconf.batch_size, 0)
+ self.ltp.trans:update_select_rows_by_colidx(bp_err[1], input[1], - self.gconf.lrate / self.gconf.batch_size, 0)
self.ltp.trans:add(self.ltp.trans, self.ltp.trans, 1.0, - self.gconf.lrate * self.gconf.wcost / self.gconf.batch_size)
end