From c2744161a470424b4f1769378c773948796e4079 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Wed, 19 Jul 2023 11:20:33 -0400 Subject: [PATCH] fix --- test/functors.jl | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/functors.jl b/test/functors.jl index a658a0597b..9919567b56 100644 --- a/test/functors.jl +++ b/test/functors.jl @@ -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