Skip to content

Commit

Permalink
unbreak gpu conv test (#541)
Browse files Browse the repository at this point in the history
* unbreak gpu conv test

* cleanup
  • Loading branch information
CarloLucibello authored Sep 27, 2023
1 parent 8da76bd commit d0a03f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ext_cuda/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ using NNlib: DenseConvDims
@testset "scale-beta" begin
gputest((y, x, w) -> act.(NNlib.conv!(copy(y), x, w, cdims; beta=T(2.0))), y, x, w, checkgrad=false, broken=false)
gputest((w, x, y) -> act.(NNlib.∇conv_filter!(copy(w), x, y, cdims; beta=T(2.0))), w, x, y, checkgrad=false, broken=false)
gputest((x, y, w) -> act.(NNlib.∇conv_data!(copy(x), y, w, cdims; beta=T(2.0))), x, y, w, checkgrad=false, broken=true)
gputest((x, y, w) -> act.(NNlib.∇conv_data!(copy(x), y, w, cdims; beta=T(2.0))), x, y, w, checkgrad=false, broken=false)

if T <: Complex
gputest((y, x, w) -> act.(NNlib.conv!(copy(y), x, w, cdims; beta=T(2.0))), y, real(x), w, checkgrad=false)
Expand Down

0 comments on commit d0a03f2

Please sign in to comment.