提交 78fe1354 authored 作者: abergeron's avatar abergeron 提交者: GitHub

Merge pull request #4949 from nouiz/pydot

Don't crash when pydot isn't there.
......@@ -14,7 +14,11 @@ from theano import gof
from theano.compile.profilemode import ProfileMode
from theano.compile import Function
from theano.compile import builders
from theano.printing import pd, pydot_imported, pydot_imported_msg
from theano.printing import pydot_imported, pydot_imported_msg
try:
from theano.printing import pd
except ImportError:
pass
class PyDotFormatter(object):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论