Skip to content

Commit c3209f4

Browse files
committed
only broken on 1.6
1 parent 45c3e85 commit c3209f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/cuda.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ CUDA.allowscalar(false)
66
# Test GPU movement inside the call to `gradient`
77
@testset "GPU movement" begin
88
r = rand(Float32, 3,3)
9-
@test_broken gradient(x -> sum(cu(x)), r)[1] isa Array{Float32, 2}
9+
if VERSION < v"1.6"
10+
@test gradient(x -> sum(cu(x)), r)[1] isa Matrix{Float32}
11+
else
12+
@test_broken gradient(x -> sum(cu(x)), r)[1] isa Matrix{Float32}
13+
end
1014
end
1115

1216
@testset "broadcasting" begin

0 commit comments

Comments
 (0)