提交 12b09e99 authored 作者: ChienliMa's avatar ChienliMa

Fix typo and delete extra line

上级 fe5cee6e
import numpy
import theano
from theano import gof
from theano.compat import izip
from theano.compile.function_module import orig_function
from theano.compile import SharedVariable, rebuild_collect_shared
from theano.gof import ops_with_inner_function
from theano.gof import FunctionGraph
from theano.gof import ops_with_inner_function, FunctionGraph
class OpFromGraph(gof.Op):
......
......@@ -109,12 +109,11 @@ class T_OpFromGraph(unittest.TestCase):
fn(xv, yv, zv))
def test_connection_pattern(self):
import numpy
x, y, z = T.matrices('xyz')
out1 = x * y
out2 = y * z
op = OpFromGraph([x ,y, z], [out1, out2], moe='FAST_RUN')
op = OpFromGraph([x ,y, z], [out1, out2], mode='FAST_RUN')
results = op.connection_pattern(None)
expect_result = [[True, False],
[True, True],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论