File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 383
383
B = rand (T, 4 , 3 )
384
384
B_ra = Reactant. to_rarray (B)
385
385
386
- @test @jit (solve_with_lu (A_ra, b_ra)) ≈ solve_with_lu (A, b)
387
- @test @jit (solve_with_lu (A_ra, B_ra)) ≈ solve_with_lu (A, B)
386
+ @test @jit (solve_with_lu (A_ra, b_ra)) ≈ solve_with_lu (A, b) atol = 1e-4 rtol =
387
+ 1e-2
388
+ @test @jit (solve_with_lu (A_ra, B_ra)) ≈ solve_with_lu (A, B) atol = 1e-4 rtol =
389
+ 1e-2
388
390
end
389
391
end
390
392
401
403
B = rand (T, 4 , 5 , 3 , 2 )
402
404
B_ra = Reactant. to_rarray (B)
403
405
404
- @test @jit (solve_with_lu (A_ra, b_ra)) ≈ solve_with_lu_batched (A, b)
405
- @test @jit (solve_with_lu (A_ra, B_ra)) ≈ solve_with_lu_batched (A, B)
406
+ @test @jit (solve_with_lu (A_ra, b_ra)) ≈ solve_with_lu_batched (A, b) atol = 1e-4 rtol =
407
+ 1e-2
408
+ @test @jit (solve_with_lu (A_ra, B_ra)) ≈ solve_with_lu_batched (A, B) atol = 1e-4 rtol =
409
+ 1e-2
406
410
end
407
411
end
408
412
412
416
A_ra = Reactant. to_rarray (A)
413
417
B_ra = Reactant. to_rarray (B)
414
418
415
- @test @jit (solve_with_lu (A_ra, B_ra)) ≈ solve_with_lu_batched (A, B)
419
+ @test @jit (solve_with_lu (A_ra, B_ra)) ≈ solve_with_lu_batched (A, B) atol = 1e-4 rtol =
420
+ 1e-2
416
421
end
417
422
end
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ macro ≈(a, b)
9
9
end
10
10
11
11
@testset " gamma" begin
12
- @test SpecialFunctions. gamma (0.5 ) ≈ @jit (SpecialFunctions. gamma (ConcreteRNumber (0.5 )))
12
+ @test SpecialFunctions. gamma (0.5 ) ≈ @jit (SpecialFunctions. gamma (ConcreteRNumber (0.5 ))) atol =
13
+ 1e-5 rtol = 1e-3
13
14
@test SpecialFunctions. gamma (Int32 (2 )) ≈
14
15
@jit (SpecialFunctions. gamma (ConcreteRNumber (Int32 (2 )))) atol = 1e-5 rtol = 1e-3
15
16
end
You can’t perform that action at this time.
0 commit comments