Skip to content

Commit af4651d

Browse files
committed
Update LinearAlgebra.cs
1 parent 24e52e0 commit af4651d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/TorchSharpTest/LinearAlgebra.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,19 +404,19 @@ public void SolveTriangularTest()
404404
var A = randn(3, 3).triu_();
405405
var b = randn(3, 4);
406406
var x = linalg.solve_triangular(A, b, upper: true);
407-
Assert.True(A.matmul(x).allclose(b, rtol: 1e-03, atol: 1e-06));
407+
Assert.True(A.matmul(x).allclose(b, rtol: 1e-03, atol: 1e-05));
408408
}
409409
{
410410
var A = randn(2, 3, 3).tril_();
411411
var b = randn(2, 3, 4);
412412
var x = linalg.solve_triangular(A, b, upper: false);
413-
Assert.True(A.matmul(x).allclose(b, rtol: 1e-03, atol: 1e-06));
413+
Assert.True(A.matmul(x).allclose(b, rtol: 1e-03, atol: 1e-05));
414414
}
415415
{
416416
var A = randn(2, 4, 4).tril_();
417417
var b = randn(2, 3, 4);
418418
var x = linalg.solve_triangular(A, b, upper: false, left: false);
419-
Assert.True(x.matmul(A).allclose(b, rtol: 1e-03, atol: 1e-06));
419+
Assert.True(x.matmul(A).allclose(b, rtol: 1e-03, atol: 1e-05));
420420
}
421421
}
422422

0 commit comments

Comments
 (0)