From 7e89c7fa1ec92ce281389d08093502b5fb201a1b Mon Sep 17 00:00:00 2001 From: Venkataramana Ganesh Date: Wed, 16 Sep 2020 01:02:26 -0700 Subject: [PATCH] refactoring to pep8 format #2 --- python/cuml/sparse/linalg/blopex_lobpcg.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/cuml/sparse/linalg/blopex_lobpcg.py b/python/cuml/sparse/linalg/blopex_lobpcg.py index 5670ee7060..93c846202c 100644 --- a/python/cuml/sparse/linalg/blopex_lobpcg.py +++ b/python/cuml/sparse/linalg/blopex_lobpcg.py @@ -101,6 +101,7 @@ def _b_orthonormalize(B, blockVectorV, blockVectorBV=None, retInvR=False): blockVectorBV = None except Exception as e: # raise ValueError('Cholesky has failed') + print("{} occured".format(e)) blockVectorV = None blockVectorBV = None VBV = None @@ -507,8 +508,9 @@ def lobpcg(A, try: _lambda, eigBlockVector = _genEigh(gramA, gramB) - except: + except Exception as e: # try again after dropping the direction vectors P from RR + print('{} occured'.format(e)) restart = True if restart: