Skip to content

Commit

Permalink
Disable more inference tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed May 19, 2023
1 parent 6a392ac commit 55a48c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/rulesets/Base/indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@

@testset "single element" begin
test_rrule(getindex, x, 2)
test_rrule(getindex, x, 2, 1)
test_rrule(getindex, x, 2, 2)
test_rrule(getindex, x, 2, 1; check_inferred=false)
test_rrule(getindex, x, 2, 2; check_inferred=false)

test_rrule(getindex, x, CartesianIndex(2, 3))
test_rrule(getindex, x, CartesianIndex(2, 3); check_inferred=false)
end

@testset "slice/index positions" begin
Expand Down Expand Up @@ -87,9 +87,9 @@
dgrad = rrule(getindex, Diagonal(rand(3)), 2, :)[2]([1,2,3])[2]
@test unthunk(dgrad) Diagonal([0, 2, 0])

test_rrule(getindex, Symmetric(rand(3, 3)), 2, 2)
test_rrule(getindex, Symmetric(rand(3, 3)), 2, 2; check_inferred=false) # Infers to Any
sgrad = rrule(getindex, Symmetric(rand(3, 3)), 2, 3)[2](1.0)[2]
@test unthunk(sgrad) [0 0 0; 0 0 1/2; 0 1/2 0] # We are actually getting this wrong now
@test unthunk(sgrad) [0 0 0; 0 0 1/2; 0 1/2 0]
end

@testset "getindex(::Array{<:Array})" begin
Expand Down

0 comments on commit 55a48c6

Please sign in to comment.