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 b182686 commit b2a3d1eCopy full SHA for b2a3d1e
pymc/pytensorf.py
@@ -180,7 +180,8 @@ def extract_obs_data(x: TensorVariable) -> np.ndarray:
180
from pymc.data import has_random_ancestor
181
182
if not has_random_ancestor(x):
183
- return x.eval()
+ cheap_eval_mode = Mode(linker="py", optimizer=None)
184
+ return x.eval(mode=cheap_eval_mode)
185
186
raise TypeError(f"Data cannot be extracted from {x}")
187
0 commit comments