Skip to content

Commit ffb8b9e

Browse files
committed
okay understood why it fails.
1 parent 32b705e commit ffb8b9e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/chainrules.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,11 @@
205205
# Forward da
206206
_, Δx_inv_da = frule((NoTangent(), 1.0, 0.0, 0.0), beta_inc_inv, a, b, p)
207207
_, Δp_from_da = frule((NoTangent(), 1.0, 0.0, Δx_inv_da[1]), beta_inc, a, b, x_inv)
208-
@test iszero(Δp_from_da[1])
208+
@test isapprox(Δp_from_da[1], 0.0, rtol=1e-9, atol=1e-15)
209209
# Forward db
210210
_, Δx_inv_db = frule((NoTangent(), 0.0, 1.0, 0.0), beta_inc_inv, a, b, p)
211211
_, Δp_from_db = frule((NoTangent(), 0.0, 1.0, Δx_inv_db[1]), beta_inc, a, b, x_inv)
212-
@test isapprox(Δp_from_db[1], 0.0, rtol=1e-9)
212+
@test isapprox(Δp_from_db[1], 0.0, rtol=1e-9, atol=1e-15)
213213

214214
# Reverse-mode chain for composition: pullback through f then g
215215
# Pullback of f at (a,b,x_inv)

0 commit comments

Comments
 (0)