Skip to content

Commit 2d4b789

Browse files
committed
Fix Julia LTS failure
1 parent 09e436e commit 2d4b789

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/test_utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ const _BACKEND_MAP = Dict{Symbol,Any}(
3939

4040
# Custom isapprox that handles Zygote returning `nothing` for zero gradients
4141
function _isapprox_nothing(a, b; kwargs...)
42-
a_val = isnothing(a) ? zero(b) : a
43-
b_val = isnothing(b) ? zero(a) : b
42+
a_val = isnothing(a) ? zero.(b) : a
43+
b_val = isnothing(b) ? zero.(a) : b
4444
return Base.isapprox(a_val, b_val; kwargs...)
4545
end
4646

0 commit comments

Comments
 (0)