|
98 | 98 | sum(gradient(m -> sum(destructure(m)[1])^3, (v, [4,5,6.0]))[1][1]) |
99 | 99 | end[1] == [378, 378, 378] |
100 | 100 |
|
101 | | - @test_broken gradient([1,2,3.0]) do v |
| 101 | + VERSION >= v"1.10" && @test gradient([1,2,3.0]) do v |
102 | 102 | sum(abs2, gradient(m -> sum(abs2, destructure(m)[1]), (x = v, y = sin, z = [4,5,6.0]))[1][1]) |
103 | 103 | end[1] ≈ [8,16,24] |
104 | 104 | # Zygote error in (::typeof(∂(canonicalize)))(Δ::NamedTuple{(:backing,), Tuple{NamedTuple{(:x, :y, :z) |
105 | 105 | # Diffractor error in perform_optic_transform |
106 | 106 | end |
107 | 107 |
|
108 | | - VERSION < v"1.9-" && @testset "using Yota" begin |
| 108 | + false && @testset "using Yota" begin |
109 | 109 | @test Yota_gradient(m -> destructure(m)[1][1], m1)[1] == [1,0,0] |
110 | 110 | @test Yota_gradient(m -> destructure(m)[1][2], m2)[1] == ([0,1,0], [0,0,0]) |
111 | 111 | @test Yota_gradient(m -> destructure(m)[1][3], (m1, m1))[1] == ([0,0,1], nothing) |
|
175 | 175 | # Zygote.@adjoint Tangent{T,B}(x::NamedTuple) where {T,B<:NamedTuple} = Tangent{T,B}(x), dx -> (dx,) |
176 | 176 | end |
177 | 177 |
|
178 | | - VERSION < v"1.9-" && @testset "using Yota" begin |
| 178 | + false && @testset "using Yota" begin |
179 | 179 | re1 = destructure(m1)[2] |
180 | 180 | @test Yota_gradient(x -> re1(x)[1], rand(3))[1] == [1,0,0] |
181 | 181 | re2 = destructure(m2)[2] |
|
0 commit comments