EnzymeAD / Enzyme.jl

Julia bindings for the Enzyme automatic differentiator
https://enzyme.mit.edu
MIT License
428 stars 59 forks source link

[EnzymeTestUtils] Add rng keyword to testing functions and test with seed #1398

Closed sethaxen closed 3 months ago

sethaxen commented 3 months ago

As suggested in https://github.com/EnzymeAD/Enzyme.jl/issues/1397#issuecomment-2067767354, with this PR, test_forward and test_reverse can accept a user-specified random number generator. Additionally, the seed in the test suite is now fixed.

Fixes #1397