Skip to content

Commit 8222d24

Browse files
Kyunghyun ChoKyunghyun Cho
Kyunghyun Cho
authored and
Kyunghyun Cho
committed
remove redundant bias addition
1 parent a6da8e3 commit 8222d24

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)