Skip to content

Commit 64b0342

Browse files
committed
Use a function instead of operation
Functions are easier to wrap in the compat layer, working around things like type promotion differences.
1 parent bbfe50f commit 64b0342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/test_linalg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ def test_vecdot(x1, x2, kw):
790790

791791
if x1.dtype in dh.int_dtypes:
792792
def true_val(x, y, axis=-1):
793-
return xp.sum(x*y, dtype=res.dtype)
793+
return xp.sum(xp.multiply(x, y), dtype=res.dtype)
794794
else:
795795
true_val = None
796796

0 commit comments

Comments
 (0)