提交 0fe3b745 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

added comment into the test to make it obvious what the test does

上级 34d8a4de
......@@ -2288,6 +2288,9 @@ class T_Scan(unittest.TestCase):
v_out = numpy.dot(v_h, v_W1+ v_W2)
sol = numpy.zeros((5,2))
# This line is here to make sol have the same shape as the output of
# theano. Note that what we ask theano to do is to repeat the 2
# elements vector v_out 5 times
sol[:,:] = v_out
assert numpy.allclose(sol, f(v_h, v_W1, v_W2))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论