Skip to content

Commit

Permalink
Merge pull request #237 from asmeurer/tensordot-fix
Browse files Browse the repository at this point in the history
Avoid passing a list of axes to tensordot
  • Loading branch information
honno committed Feb 28, 2024
2 parents 2c12312 + 5484041 commit 6a1f943
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions array_api_tests/test_linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ def _test_tensordot_stacks(x1, x2, kw, res):
indices = [range(len(s))[i] for i in a]
repl = dict(zip(sorted(indices), range(len(indices))))
res_axes.append(tuple(repl[i] for i in indices))
res_axes = tuple(res_axes)

for ((i,), (j,)), (res_idx,) in zip(
itertools.product(
Expand Down

0 comments on commit 6a1f943

Please sign in to comment.