Skip to content

Commit 87dab3e

Browse files
committed
Merge pull request lisa-lab#85 from kyunghyuncho/lstm_tutorial
remove redundant bias addition
2 parents a6da8e3 + 8222d24 commit 87dab3e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Diff for: code/lstm.py

-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ def _slice(_x, n, dim):
171171
def _step(m_, x_, h_, c_):
172172
preact = tensor.dot(h_, tparams[_p(prefix, 'U')])
173173
preact += x_
174-
preact += tparams[_p(prefix, 'b')]
175174

176175
i = tensor.nnet.sigmoid(_slice(preact, 0, options['dim_proj']))
177176
f = tensor.nnet.sigmoid(_slice(preact, 1, options['dim_proj']))

0 commit comments

Comments
 (0)