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 e97e375 commit caa2d67Copy full SHA for caa2d67
bayesflow/approximators/continuous_approximator.py
@@ -706,7 +706,8 @@ def compute_prior_score_pre(_samples: Tensor) -> Tensor:
706
)
707
prior_score = compute_prior_score(adapted_samples)
708
for key in adapted_samples:
709
- prior_score[key] = prior_score[key]
+ if isinstance(prior_score[key], np.ndarray):
710
+ prior_score[key] = prior_score[key].astype("float32")
711
if len(log_det_jac) > 0:
712
prior_score[key] += log_det_jac[key]
713
0 commit comments