Skip to content

Commit

Permalink
more explicit broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed Dec 30, 2020
1 parent d231f2f commit c960c61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cuda/layers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ function gpu_gradtest(name::String, layers::Vector, x_cpu, args...;
@testset "$layer GPU grad test" begin
l_cpu = layer(args...)
if l_cpu isa BROKEN_LAYERS
@test_broken gpu_autodiff_test(l_cpu, x_cpu,
test_equal=test_cpu, rtol=rtol, atol=atol)
l_gpu, x_gpu = l_cpu |> gpu, x_cpu |> gpu
@test_broken gradient(() -> sum(l_gpu(x_gpu)), Flux.params(l_gpu)) isa Flux.Zygote.Grads
else
gpu_autodiff_test(l_cpu, x_cpu,
test_equal=test_cpu, rtol=rtol, atol=atol)
Expand Down

0 comments on commit c960c61

Please sign in to comment.