Skip to content

Commit 6e7d2be

Browse files
authored
Update check_zygote_type_stability()... (#568)
so that CI passes with Julia v1.10. Tested locally with Julia v1.10 & v1.11. Forces the expected type to be `Vector{Union{Nothing, @NamedTuple{X::Matrix{Float64}}}}` which is more robust for different package versions. There may be better solutions, but this seems to work.
1 parent 8cd6390 commit 6e7d2be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function check_zygote_type_stability(f, args...; ctx=Zygote.Context())
104104
@inferred f(args...)
105105
@inferred Zygote._pullback(ctx, f, args...)
106106
out, pb = Zygote._pullback(ctx, f, args...)
107-
@inferred pb(out)
107+
@inferred collect(pb(out))
108108
end
109109

110110
function test_ADs(

0 commit comments

Comments
 (0)