Skip to content

Commit

Permalink
Update test/cuda/layers.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Dhairya Gandhi <[email protected]>
  • Loading branch information
CarloLucibello and DhairyaLGandhi authored Jul 13, 2021
1 parent 74d72a2 commit 51c7ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cuda/layers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,6 @@ end
@test Array(y_g) == y
gs = gradient(() -> sum(m(x)), params(m))
gs_g = gradient(() -> sum(m_g(x_g)), params(m_g))
@test collect(gs_g[m_g.weight]) gs[m.weight]
@test Array(gs_g[m_g.weight]) gs[m.weight]
end
end

0 comments on commit 51c7ccf

Please sign in to comment.