Skip to content

Commit

Permalink
test: temporarily mark the test as broken
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Dec 4, 2024
1 parent 7b714c1 commit 902b4d5
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions test/layers/basic_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,19 @@ end
)
x = randn(SVector{N, Float64})

grad1 = ForwardDiff.gradient(ComponentArray(ps)) do ps
sumabs2first(d, x, ps, (;))
end
broken = pkgversion(Enzyme) v"0.13.18"

@test begin
grad1 = ForwardDiff.gradient(ComponentArray(ps)) do ps
sumabs2first(d, x, ps, (;))
end

grad2 = Enzyme.gradient(
Enzyme.Reverse, sumabs2first, Const(d), Const(x), ps, Const((;))
)[3]
grad2 = Enzyme.gradient(
Enzyme.Reverse, sumabs2first, Const(d), Const(x), ps, Const((;))
)[3]

@test maximum(abs, grad1 .- ComponentArray(grad2)) < 1e-6
maximum(abs, grad1 .- ComponentArray(grad2)) < 1e-6
end broken=broken
end
end

Expand Down

0 comments on commit 902b4d5

Please sign in to comment.