Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
fferflo committed Jun 9, 2024
1 parent 19e875f commit ec14667
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def test_shape_rearrange(test):
2,
2,
)
assert einx.rearrange("b s... c x... -> x... b (s...) c", x, x=()).shape == (10, 400, 2)

if backend.name != "torch":
assert einx.rearrange("1 -> (x)", [1], x=10, backend=backend).shape == (10,)
Expand Down

0 comments on commit ec14667

Please sign in to comment.