Skip to content

Commit

Permalink
Correct remaining tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simsurace committed Feb 6, 2024
1 parent e3fd7dc commit b860116
Showing 1 changed file with 32 additions and 8 deletions.
40 changes: 32 additions & 8 deletions test/transform/selecttransform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,41 @@
end

@testset "$(AD)" for AD in [:ReverseDiff]
@test_broken ga = gradient(AD, A) do a
testfunction(ta_row, a, 2)
@test_broken let
gx = gradient(AD, X) do x
testfunction(tx_row, x, 2)
end
ga = gradient(AD, A) do a
testfunction(ta_row, a, 2)
end
gx ga
end
@test_broken ga = gradient(AD, A) do a
testfunction(ta_col, a, 1)
@test_broken let
gx = gradient(AD, X) do x
testfunction(tx_col, x, 1)
end
ga = gradient(AD, A) do a
testfunction(ta_col, a, 1)
end
gx ga
end
@test_broken ga = gradient(AD, A) do a
testfunction(ta_row, a, B, 2)
@test_broken let
gx = gradient(AD, X) do x
testfunction(tx_row, x, Y, 2)
end
ga = gradient(AD, A) do a
testfunction(ta_row, a, B, 2)
end
gx ga
end
@test_broken ga = gradient(AD, A) do a
testfunction(ta_col, a, C, 1)
@test_broken let
gx = gradient(AD, X) do x
testfunction(tx_col, x, Z, 1)
end
ga = gradient(AD, A) do a
testfunction(ta_col, a, C, 1)
end
gx ga
end
end

Expand Down

0 comments on commit b860116

Please sign in to comment.