We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25e9476 commit 94b0c2eCopy full SHA for 94b0c2e
pymc3/__init__.py
@@ -62,8 +62,22 @@ def __set_compiler_flags():
62
theano.config.gcc__cxxflags = f"{current} -Wno-c++11-narrowing"
63
64
65
+def _hotfix_theano_printing():
66
+ """ This is a workaround for https://github.com/pymc-devs/aesara/issues/309 """
67
+ try:
68
+ import pydot
69
+ import theano.printing
70
+
71
+ if theano.printing.Node != pydot.Node:
72
+ theano.printing.Node = pydot.Node
73
+ except ImportError:
74
+ # pydot is not installed
75
+ pass
76
77
78
_check_backend_version()
79
__set_compiler_flags()
80
+_hotfix_theano_printing()
81
82
from pymc3 import gp, ode, sampling
83
from pymc3.backends import load_trace, save_trace
0 commit comments