From 8222d24d1239b7207035bf8e3f81811a882fccec Mon Sep 17 00:00:00 2001 From: Kyunghyun Cho Date: Wed, 13 May 2015 18:14:07 -0400 Subject: [PATCH] remove redundant bias addition --- code/lstm.py | 1 - 1 file changed, 1 deletion(-) diff --git a/code/lstm.py b/code/lstm.py index 4423840a..8765158c 100644 --- a/code/lstm.py +++ b/code/lstm.py @@ -171,7 +171,6 @@ def _slice(_x, n, dim): def _step(m_, x_, h_, c_): preact = tensor.dot(h_, tparams[_p(prefix, 'U')]) preact += x_ - preact += tparams[_p(prefix, 'b')] i = tensor.nnet.sigmoid(_slice(preact, 0, options['dim_proj'])) f = tensor.nnet.sigmoid(_slice(preact, 1, options['dim_proj']))