Skip to content

Commit 029d548

Browse files
ricardoV94twiecki
authored andcommitted
Revert "Add informative error if user tries to use Aesara function with PyTensor variables"
This reverts commit 7e9e459.
1 parent b081cec commit 029d548

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

pymc/pytensorf.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -89,23 +89,6 @@
8989
]
9090

9191

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-
10992
def convert_observed_data(data):
11093
"""Convert user provided dataset to accepted formats."""
11194

0 commit comments

Comments
 (0)