Skip to content

Commit 7776fdd

Browse files
authored
don't test gradient of abs at 0
1 parent 22602b3 commit 7776fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cuda.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ end
2727
end
2828

2929
@testset "sum(f, x)" begin
30-
a = Float32.(-4:4)
30+
a = Float32.([-1.5, -9.0, 2.4, -1.3, 0.01])
3131
a_gpu = a |> cu
3232

3333
f(x) = sum(abs, x)

0 commit comments

Comments
 (0)