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

Fix typo and delete extra line

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