We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45c3e85 commit c3209f4Copy full SHA for c3209f4
test/cuda.jl
@@ -6,7 +6,11 @@ CUDA.allowscalar(false)
6
# Test GPU movement inside the call to `gradient`
7
@testset "GPU movement" begin
8
r = rand(Float32, 3,3)
9
- @test_broken gradient(x -> sum(cu(x)), r)[1] isa Array{Float32, 2}
+ 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
14
end
15
16
@testset "broadcasting" begin
0 commit comments