Skip to content

Commit a0f0611

Browse files
committed
Add test
1 parent 358f75f commit a0f0611

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/utils.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,3 +799,9 @@ end
799799
end
800800
end
801801
end
802+
803+
# make sure rng_from_array is non_differentiable
804+
@testset "rng_from_array" begin
805+
m(x) = (rand(rng_from_array(x)) * x)[1]
806+
gradient(m, ones(2))
807+
end

0 commit comments

Comments
 (0)