提交 0efc781f authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Move down conditional import to keep flake8 happy

The problematic line was "if not pydot_imported:", try/except statements are OK
上级 8bcd3264
......@@ -14,6 +14,14 @@ import hashlib
import numpy as np
from six import string_types, integer_types, iteritems
import theano
from theano import gof
from theano import config
from six.moves import StringIO, reduce
from theano.gof import Op, Apply
from theano.compile import Function, debugmode, SharedVariable
from theano.compile.profilemode import ProfileMode
# pydot-ng is a fork of pydot that is better maintained, and works
# with more recent version of its dependencies (in particular pyparsing)
try:
......@@ -34,14 +42,6 @@ if not pydot_imported:
except Exception:
pass
import theano
from theano import gof
from theano import config
from six.moves import StringIO, reduce
from theano.gof import Op, Apply
from theano.compile import Function, debugmode, SharedVariable
from theano.compile.profilemode import ProfileMode
_logger = logging.getLogger("theano.printing")
VALID_ASSOC = set(['left', 'right', 'either'])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论