Skip to content

Commit 2de5745

Browse files
Update test/cuda/layers.jl
Co-authored-by: Dhairya Gandhi <dhairya@juliacomputing.com>
1 parent ac73906 commit 2de5745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cuda/layers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ end
288288
m_g = m |> gpu
289289
x_g = x |> gpu
290290
y_g = m_g(x_g)
291-
@test collect(y_g) == y
291+
@test Array(y_g) == y
292292
gs = gradient(() -> sum(m(x)), params(m))
293293
gs_g = gradient(() -> sum(m_g(x_g)), params(m_g))
294294
@test collect(gs_g[m_g.weight]) gs[m.weight]

0 commit comments

Comments
 (0)