Skip to content

Commit fabd775

Browse files
committed
Addressed comments
1 parent cab45e6 commit fabd775

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_torch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3374,7 +3374,8 @@ def _test_gesv_batched(self, cast):
33743374
# Test non-contiguous inputs.
33753375
if not TEST_NUMPY:
33763376
return
3377-
3377+
import numpy
3378+
from numpy.linalg import solve
33783379
A = cast(torch.randn(2, 2, 2)).permute(1, 0, 2)
33793380
b = cast(torch.randn(2, 2, 2)).permute(2, 1, 0)
33803381
x, _ = torch.gesv(b, A)

0 commit comments

Comments
 (0)