Skip to content

Commit 8835104

Browse files
committed
- Fix regression caused by pymc-devs#4211
1 parent 7ff2f49 commit 8835104

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc3/sampling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,15 +414,15 @@ def sample(
414414
"""
415415
model = modelcontext(model)
416416
if start is None:
417-
start = model.test_point
417+
check_start_vals(model.test_point, model)
418418
else:
419419
if isinstance(start, dict):
420420
update_start_vals(start, model.test_point, model)
421421
else:
422422
for chain_start_vals in start:
423423
update_start_vals(chain_start_vals, model.test_point, model)
424+
check_start_vals(start, model)
424425

425-
check_start_vals(start, model)
426426
if cores is None:
427427
cores = min(4, _cpu_count())
428428

0 commit comments

Comments
 (0)