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 2bf0b53 commit 7500a84Copy full SHA for 7500a84
bayesflow/utils/dict_utils.py
@@ -222,7 +222,7 @@ def make_variable_array(
222
else:
223
raise TypeError(f"Only dicts and tensors are supported as arguments, but your estimates are of type {type(x)}")
224
225
- if len(variable_names) is not x.shape[-1]:
+ if len(variable_names) == x.shape[-1]:
226
raise ValueError("Length of 'variable_names' should be the same as the number of variables.")
227
228
if variable_keys is None:
0 commit comments