Skip to content

Commit 32b705e

Browse files
committed
one more isapprox ?
1 parent f39517f commit 32b705e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/chainrules.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
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 iszero(Δp_from_db[1])
212+
@test isapprox(Δp_from_db[1], 0.0, rtol=1e-9)
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)