Skip to content

Commit

Permalink
relax identity test for devices (#2544)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello authored Dec 7, 2024
1 parent 4edc2ac commit 5cc50e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/functors.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
x = rand(Float32, 10, 10)
if gpu_device() isa CPUDevice
@test x === gpu(x)
@test x == gpu(x)
end

dev = Flux.cpu_device()
Expand Down

0 comments on commit 5cc50e9

Please sign in to comment.