Skip to content

Commit 976af66

Browse files
authored
relax ChainRules test on polygamma (#320)
1 parent 2e2e180 commit 976af66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/chainrules.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
test_points = (1.5, 2.5, 10.5, -0.6, -2.6, -3.3, 1.6 + 1.6im, 1.6 - 1.6im, -4.6 + 1.6im)
8585
for x in test_points
8686
for m in (0, 1, 2, 3)
87-
test_frule(polygamma, m, x)
88-
test_rrule(polygamma, m, x)
87+
test_frule(polygamma, m, x; rtol=1e-8)
88+
test_rrule(polygamma, m, x; rtol=1e-8)
8989
end
9090

9191
isreal(x) && x < 0 && continue

0 commit comments

Comments
 (0)