Skip to content

Commit

Permalink
Added test to check if shape returns tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
MarieRoald committed Jan 8, 2022
1 parent 87b435b commit f9baf2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tensorly/tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ def test_shape():
A2 = T.reshape(A, shape2)
assert_equal(T.shape(A2), shape2)

assert type(T.shape(A2)) == tuple


def test_ndim():
A = T.arange(3*4*5)
Expand Down

0 comments on commit f9baf2d

Please sign in to comment.