File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 89
89
]
90
90
91
91
92
- # Temporarily add an Aesara dispatch for PyTensor TensorVariable to inform users
93
- # of incorrect mixing of libraries
94
- try :
95
- from aesara .tensor import _as_tensor_variable as _as_tensor_variable_aesara
96
-
97
- @_as_tensor_variable_aesara .register (TensorVariable )
98
- def raise_informative_error (* args , ** kwargs ):
99
- raise TypeError (
100
- "You are calling an Aesara function with PyTensor variables.\n "
101
- "Starting with PyMC 5.0, Aesara was replaced by PyTensor (see https://www.pymc.io/blog/pytensor_announcement.html).\n "
102
- "Replace your import of aesara.tensor with pytensor.tensor." ,
103
- )
104
-
105
- except ImportError :
106
- pass
107
-
108
-
109
92
def convert_observed_data (data ):
110
93
"""Convert user provided dataset to accepted formats."""
111
94
You can’t perform that action at this time.
0 commit comments