提交 6d692abb authored 作者: Frederic's avatar Frederic

pep8

上级 cf7a3691
......@@ -30,7 +30,7 @@ def test_graph_equivalence():
g3_b = T.fmatrix('inputs')
g3_y = T.sum(g3_a+g3_b)
assert is_same_graph(g1_y, g2_y) == False
assert is_same_graph(g1_y, g2_y) is False
# This does not work.
assert is_same_graph(g1_y, g1_y)
assert is_same_graph(g1_y, g1_yy)
......@@ -44,11 +44,12 @@ def test_graph_equivalence():
#assert graphs_equal(g1_y, g3_y) == True
#assert graphs_equal(g1_y, g2_y) == False
def test_graph_optimization_caching():
#
x = T.fmatrix('inputs')
y = x.sum()
f = theano.function(inputs=[x],outputs=y)
f = theano.function(inputs=[x], outputs=y)
if __name__ == '__main__':
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论