Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vtavana committed Dec 20, 2024
1 parent 141067b commit ebe4868
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dpnp/tests/test_sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ def test_sum(shape, dtype_in, dtype_out, transpose, keepdims, order):
and numpy.issubdtype(dtype_in, numpy.signedinteger)
and not a_np.sum(axis=axis).all()
):
# If summation is zero and dtype=numpy.bool is passed to numpy.sum
# NumPy returns True which is not correct
# TODO: remove workaround when dpctl-issue#1944 is resolved
a = a.astype(dpnp.bool)
dpnp_res = a.sum(axis=axis, dtype=dtype_out, keepdims=keepdims)
else:
Expand Down

0 comments on commit ebe4868

Please sign in to comment.