Skip to content

Commit

Permalink
Merge pull request #6675 from chainer-ci/bp-6669-v10-fix-warn-msg
Browse files Browse the repository at this point in the history
[backport] Improve warning message in sparse
  • Loading branch information
kmaehashi committed Jun 14, 2022
2 parents 159eb88 + 835b453 commit d7b8b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cupyx/scipy/sparse/compressed.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,8 @@ def _set_many(self, i, j, x):

else:
warnings.warn('Changing the sparsity structure of a '
'{}_matrix is expensive.'
' lil_matrix is more efficient.'.format(self.format))
'{}_matrix is expensive.'.format(self.format),
base.SparseEfficiencyWarning)
# replace where possible
mask = offsets > -1
self.data[offsets[mask]] = x[mask]
Expand Down

0 comments on commit d7b8b9f

Please sign in to comment.