-
-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DifferentiationInterface testing #2469
Comments
You can take a look at the tests we added for Enzyme https://github.com/FluxML/Flux.jl/blob/master/test/ext_enzyme/enzyme.jl e.g. begin with
We impose little limitations on gradients, they can be nested structs or named structs.
where |
I'm having issues when comparing the true gradients with finite differences. Depending on the random seed I get unpredictable failures. Is that a problem in the Flux test suite as well @CarloLucibello? I didn't find a way to pass an |
We do |
I'll try! Which backends should I aim to test? Zygote, Enzyme and Tracker? |
We don't support Tracker anymore. Primarly Zygote, and experimentally Enzyme. |
I added a random seed in JuliaDiff/DifferentiationInterface.jl#371, tests seem to pass for Zygote with the same tolerances as you. I'll notify you if I see random failures further down the road. Any idea why Enzyme fails on two scenarios only (see the PR for details)? |
Hi there!
I'm heading towards multi-argument and non-array support in DI, and I'd like to start testing Lux layers. For this I would need two things:
Do you think you could help me out?
The text was updated successfully, but these errors were encountered: