提交 cf7a3691 authored 作者: Frederic's avatar Frederic

Fix test.

上级 21f96c02
...@@ -35,8 +35,8 @@ def test_graph_equivalence(): ...@@ -35,8 +35,8 @@ def test_graph_equivalence():
assert is_same_graph(g1_y, g1_y) assert is_same_graph(g1_y, g1_y)
assert is_same_graph(g1_y, g1_yy) assert is_same_graph(g1_y, g1_yy)
assert is_same_graph(g1_y, g3_y, givens={g1_a: g3_a, g1_b: g3_b}) assert is_same_graph(g1_y, g3_y, givens={g1_a: g3_a, g1_b: g3_b})
l1=theano.gof.graph.inputs(g1_y) l1 = theano.gof.graph.inputs([g1_y])
l2=theano.gof.graph.inputs(g3_y) l2 = theano.gof.graph.inputs([g3_y])
assert len(l1) == len(l2) assert len(l1) == len(l2)
#FunctionGraph([], g1_y) #FunctionGraph([], g1_y)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论