Skip to content

Commit

Permalink
refactoring to pep8 format rapidsai#2
Browse files Browse the repository at this point in the history
  • Loading branch information
venkywonka committed Sep 16, 2020
1 parent fa0ecc7 commit 7e89c7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/cuml/sparse/linalg/blopex_lobpcg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7e89c7f

Please sign in to comment.