Skip to content

Commit

Permalink
Check a few less inference
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed May 19, 2023
1 parent 5157872 commit 6a392ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/rulesets/Base/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ end
# Reverse
test_rrule(findmin, rand(10), output_tangent = (rand(), false))
test_rrule(findmax, rand(10), output_tangent = (rand(), false))
test_rrule(findmin, rand(5,3))
test_rrule(findmax, rand(5,3))
test_rrule(findmin, rand(5,3); check_inferred=false)
test_rrule(findmax, rand(5,3); check_inferred=false)
@test [0 0; 0 5] == unthunk(rrule(findmax, [1 2; 3 4])[2]((5.0, nothing))[2])
@test [0 0; 0 5] == unthunk(rrule(findmax, [1 2; 3 4])[2]((5.0, NoTangent()))[2])

Expand All @@ -386,7 +386,7 @@ end

# Reverse
test_rrule(imum, rand(10))
test_rrule(imum, rand(3,4))
test_rrule(imum, rand(3,4); check_inferred=false)
@gpu test_rrule(imum, rand(3,4), fkwargs=(dims=1,))
test_rrule(imum, rand(3,4,5), fkwargs=(dims=(1,3),))

Expand Down

0 comments on commit 6a392ac

Please sign in to comment.