Skip to content

Commit 8060bd5

Browse files
committed
rm inferred checks on 1.0
1 parent c660230 commit 8060bd5

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

test/rulesets/Base/array.jl

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
end
66

77
@testset "hcat" begin
8-
test_rrule(hcat, randn(3, 2), randn(3), randn(3, 3))
9-
test_rrule(hcat, rand(), rand(1,2), rand(1,2,1))
10-
test_rrule(hcat, rand(3,1,1,2), rand(3,3,1,2))
8+
test_rrule(hcat, randn(3, 2), randn(3), randn(3, 3); check_inferred=VERSION>v"1.1")
9+
test_rrule(hcat, rand(), rand(1,2), rand(1,2,1); check_inferred=VERSION>v"1.1")
10+
test_rrule(hcat, rand(3,1,1,2), rand(3,3,1,2); check_inferred=VERSION>v"1.1")
1111
end
1212

1313
@testset "reduce hcat" begin
@@ -27,10 +27,10 @@ end
2727
end
2828

2929
@testset "vcat" begin
30-
test_rrule(vcat, randn(2, 4), randn(1, 4), randn(3, 4))
31-
test_rrule(vcat, rand(), rand())
32-
test_rrule(vcat, rand(), rand(3), rand(3,1,1))
33-
test_rrule(vcat, rand(3,1,2), rand(4,1,2))
30+
test_rrule(vcat, randn(2, 4), randn(1, 4), randn(3, 4); check_inferred=VERSION>v"1.1")
31+
test_rrule(vcat, rand(), rand(); check_inferred=VERSION>v"1.1")
32+
test_rrule(vcat, rand(), rand(3), rand(3,1,1); check_inferred=VERSION>v"1.1")
33+
test_rrule(vcat, rand(3,1,2), rand(4,1,2); check_inferred=VERSION>v"1.1")
3434
end
3535

3636
@testset "reduce vcat" begin
@@ -45,17 +45,17 @@ end
4545
end
4646

4747
@testset "cat" begin
48-
test_rrule(cat, rand(2, 4), rand(1, 4); fkwargs=(dims=1,))
49-
test_rrule(cat, rand(2, 4), rand(2); fkwargs=(dims=Val(2),))
50-
test_rrule(cat, rand(), rand(2, 3); fkwargs=(dims=[1,2],))
48+
test_rrule(cat, rand(2, 4), rand(1, 4); fkwargs=(dims=1,), check_inferred=VERSION>v"1.1")
49+
test_rrule(cat, rand(2, 4), rand(2); fkwargs=(dims=Val(2),), check_inferred=VERSION>v"1.1")
50+
test_rrule(cat, rand(), rand(2, 3); fkwargs=(dims=[1,2],), check_inferred=VERSION>v"1.1")
5151
test_rrule(cat, rand(1), rand(3, 2, 1); fkwargs=(dims=(1,2),), check_inferred=false) # infers Tuple{Zero, Vector{Float64}, Any}
5252
end
5353

5454
@testset "hvcat" begin
55-
test_rrule(hvcat, 2 NoTangent(), rand(ComplexF64, 6)...)
56-
test_rrule(hvcat, (2, 1) NoTangent(), rand(), rand(1,1), rand(2,2))
57-
test_rrule(hvcat, 1 NoTangent(), rand(3)' rand(1,3), transpose(rand(3)) rand(1,3))
58-
test_rrule(hvcat, 1 NoTangent(), rand(0,3), rand(2,3), rand(1,3,1))
55+
test_rrule(hvcat, 2 NoTangent(), rand(ComplexF64, 6)...; check_inferred=VERSION>v"1.1")
56+
test_rrule(hvcat, (2, 1) NoTangent(), rand(), rand(1,1), rand(2,2); check_inferred=VERSION>v"1.1")
57+
test_rrule(hvcat, 1 NoTangent(), rand(3)' rand(1,3), transpose(rand(3)) rand(1,3); check_inferred=VERSION>v"1.1")
58+
test_rrule(hvcat, 1 NoTangent(), rand(0,3), rand(2,3), rand(1,3,1); check_inferred=VERSION>v"1.1")
5959
end
6060

6161
@testset "fill" begin

0 commit comments

Comments
 (0)