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 f12fc38 commit 7499bfdCopy full SHA for 7499bfd
blackjax/util.py
@@ -182,7 +182,7 @@ def run_inference_algorithm(
182
init_key, sample_key = split(rng_key, 2)
183
try:
184
initial_state = inference_algorithm.init(initial_state_or_position, init_key)
185
- except TypeError:
+ except (TypeError, ValueError, AttributeError):
186
# We assume initial_state is already in the right format.
187
initial_state = initial_state_or_position
188
0 commit comments