Skip to content

Commit 5cc50e9

Browse files
relax identity test for devices (#2544)
1 parent 4edc2ac commit 5cc50e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
x = rand(Float32, 10, 10)
22
if gpu_device() isa CPUDevice
3-
@test x === gpu(x)
3+
@test x == gpu(x)
44
end
55

66
dev = Flux.cpu_device()

0 commit comments

Comments
 (0)