Skip to content

Commit ae34ff2

Browse files
committed
test_broken for older Julia versions
1 parent f692b4d commit ae34ff2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/chainrules.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
compare_gradient(:Zygote, [x, y]) do xy
2222
KernelFunctions.Sinus(r)(xy[1], xy[2])
2323
end
24-
compare_gradient(:Zygote, [Q, x, y]) do Qxy
25-
SqMahalanobis(Qxy[1])(Qxy[2], Qxy[3])
24+
if VERSION < v"1.6"
25+
@test_broken "Chain rule of SqMahalanobis is broken in Julia pre-1.6"
26+
else
27+
compare_gradient(:Zygote, [Q, x, y]) do Qxy
28+
SqMahalanobis(Qxy[1])(Qxy[2], Qxy[3])
29+
end
2630
end
2731
end

0 commit comments

Comments
 (0)