Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Remove test_trace_raises for dims more than 25
Browse files Browse the repository at this point in the history
  • Loading branch information
merajhashemi committed Mar 25, 2021
1 parent 5098980 commit 634524f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tensornetwork/backends/pytorch/pytorch_backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,14 +630,6 @@ def test_trace(dtype, offset, axis1, axis2):
np.testing.assert_allclose(actual, expected, atol=1e-6, rtol=1e-6)


def test_trace_raises():
shape = tuple([1] * 30)
backend = pytorch_backend.PyTorchBackend()
array = backend.randn(shape, seed=10)
with pytest.raises(ValueError):
_ = backend.trace(array)


@pytest.mark.parametrize("pivot_axis", [-1, 1, 2])
@pytest.mark.parametrize("dtype", torch_randn_dtypes)
def test_pivot(dtype, pivot_axis):
Expand Down

0 comments on commit 634524f

Please sign in to comment.