diff --git a/src/main/python/org/broadinstitute/hellbender/gcnvkernel/tasks/inference_task_base.py b/src/main/python/org/broadinstitute/hellbender/gcnvkernel/tasks/inference_task_base.py index 514c7b1ed28..8abe1923c85 100644 --- a/src/main/python/org/broadinstitute/hellbender/gcnvkernel/tasks/inference_task_base.py +++ b/src/main/python/org/broadinstitute/hellbender/gcnvkernel/tasks/inference_task_base.py @@ -392,6 +392,7 @@ def _update_continuous_posteriors(self) -> bool: try: for _ in progress_bar: loss = self.continuous_model_step_func() / self.elbo_normalization_factor + assert not np.isnan(loss), "The optimization step for ELBO update returned a NaN" self.i_advi += 1 try: