提交 34e08f32 authored 作者: Frederic's avatar Frederic

clean up

上级 8d0e91a5
...@@ -28,7 +28,6 @@ from theano import gof ...@@ -28,7 +28,6 @@ from theano import gof
from theano import config from theano import config
from theano.compat.six import StringIO from theano.compat.six import StringIO
from theano.gof import Op, Apply from theano.gof import Op, Apply
from theano.gof.python25 import any
from theano.compile import Function, debugmode from theano.compile import Function, debugmode
from theano.compile.profilemode import ProfileMode from theano.compile.profilemode import ProfileMode
...@@ -616,7 +615,6 @@ def pydotprint(fct, outfile=None, ...@@ -616,7 +615,6 @@ def pydotprint(fct, outfile=None,
fct = fct.outputs fct = fct.outputs
assert isinstance(fct, (list, tuple)) assert isinstance(fct, (list, tuple))
assert all(isinstance(v, gof.Variable) for v in fct) assert all(isinstance(v, gof.Variable) for v in fct)
inputs = gof.graph.inputs(fct)
fct = gof.FunctionGraph(inputs=gof.graph.inputs(fct), fct = gof.FunctionGraph(inputs=gof.graph.inputs(fct),
outputs=fct) outputs=fct)
mode = None mode = None
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论