Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jul 19, 2023
1 parent 08957df commit c274416
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/functors.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
x = rand(Float32, 10, 10)
if Flux.CUDA_LOADED[]
@test x !== gpu(x)
elseif Flux.AMD_LOADED[]
@test x !== gpu(x)
elseif Flux.METAL_LOADED[]
@test x !== gpu(x)
else
if !(Flux.CUDA_LOADED[] || Flux.AMD_LOADED[] || Flux.METAL_LOADED[])
@test x === gpu(x)
end

0 comments on commit c274416

Please sign in to comment.