Skip to content

Commit

Permalink
Switch to reltol from abstol for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sharanry committed Nov 6, 2023
1 parent 19a54fe commit 950864c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/enzyme.jl
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ en_jac = map(onehot(b1)) do db1
end |> collect
@show en_jac

@test en_jac fd_jac atol=1e-6
@test en_jac fd_jac rtol=1e-6

function fA(A; alg = LUFactorization())
prob = LinearProblem(A, b1)
Expand All @@ -206,4 +206,4 @@ en_jac = map(onehot(A)) do dA
end |> collect
@show en_jac

@test en_jac fd_jac atol=1e-6
@test en_jac fd_jac rtol=1e-6

0 comments on commit 950864c

Please sign in to comment.