Skip to content

Commit b2a3d1e

Browse files
committed
specify the mode
1 parent b182686 commit b2a3d1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymc/pytensorf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ def extract_obs_data(x: TensorVariable) -> np.ndarray:
180180
from pymc.data import has_random_ancestor
181181

182182
if not has_random_ancestor(x):
183-
return x.eval()
183+
cheap_eval_mode = Mode(linker="py", optimizer=None)
184+
return x.eval(mode=cheap_eval_mode)
184185

185186
raise TypeError(f"Data cannot be extracted from {x}")
186187

0 commit comments

Comments
 (0)