提交 85f80d51 authored 作者: Christof Angermueller's avatar Christof Angermueller

Fix flake8 errors

上级 7b51945e
...@@ -8,18 +8,18 @@ import os ...@@ -8,18 +8,18 @@ import os
from functools import reduce from functools import reduce
from six import iteritems, itervalues from six import iteritems, itervalues
pydot_installed = True
try:
import pydot as pd
except ImportError:
pydot_installed = False
import theano import theano
from theano import gof from theano import gof
from theano.compile.profilemode import ProfileMode from theano.compile.profilemode import ProfileMode
from theano.compile import Function from theano.compile import Function
from theano.compile import builders from theano.compile import builders
pydot_installed = True
try:
import pydot as pd
except ImportError:
pydot_installed = False
class PyDotFormatter(object): class PyDotFormatter(object):
"""Create `pydot` graph object from Theano function. """Create `pydot` graph object from Theano function.
......
...@@ -216,7 +216,9 @@ whitelist_flake8 = [ ...@@ -216,7 +216,9 @@ whitelist_flake8 = [
"gof/tests/test_cc.py", "gof/tests/test_cc.py",
"gof/tests/test_compute_test_value.py", "gof/tests/test_compute_test_value.py",
"gof/sandbox/equilibrium.py", "gof/sandbox/equilibrium.py",
"d3viz/__init__.py" "d3viz/__init__.py",
"d3viz/tests/test_d3viz.py",
"d3viz/tests/test_formatting.py"
] ]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论