提交 56a2c74d authored 作者: --global's avatar --global

pep8

上级 32c9a5a5
......@@ -630,11 +630,11 @@ class T_Scan(unittest.TestCase):
return x
x = tensor.fvector('x')
res, upd = theano.scan(lp,
sequences = dict(input = x, taps = [-2, -1]))
sequences=dict(input=x, taps=[-2, -1]))
f = theano.function([x], res, updates = upd)
output = f([1, 2, 3, 4, 5])
expected_output = numpy.array([1,2,3], dtype="float32")
expected_output = numpy.array([1, 2, 3], dtype="float32")
utt.assert_allclose(output, expected_output)
def test_connection_pattern(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论