From dffd77224cf7f73f3f485cd60fd98cc0b8019078 Mon Sep 17 00:00:00 2001 From: YunLiu <55491388+KumoLiu@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:46:34 +0800 Subject: [PATCH] fix #7896 Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> --- monai/data/ultrasound_confidence_map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monai/data/ultrasound_confidence_map.py b/monai/data/ultrasound_confidence_map.py index 5c716b62be..8c7c5326a3 100644 --- a/monai/data/ultrasound_confidence_map.py +++ b/monai/data/ultrasound_confidence_map.py @@ -285,7 +285,7 @@ def _solve_linear_system(self, lap, rhs): lap_sparse = lap.tocsr() ml = ruge_stuben_solver(lap_sparse, coarse_solver="pinv") m = ml.aspreconditioner(cycle="V") - x, _ = cg(lap, rhs, tol=self.cg_tol, maxiter=self.cg_maxiter, M=m) + x, _ = cg(lap, rhs, rtol=self.cg_tol, maxiter=self.cg_maxiter, M=m) else: x = spsolve(lap, rhs)