-
Notifications
You must be signed in to change notification settings - Fork 38
Test for forward mode jacobians #1882
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
base: main
Are you sure you want to change the base?
Conversation
Pangoraw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the error logs, it seems f_sincos_jac would need an @allowscalar annotation. But since it crashes Julia, I am not sure it is worth merging just yet.
|
I created this PR in reponse to @wsmoses comment here: EnzymeAD/Enzyme-JAX#1627 (comment) Maybe I misunderstood what PR you guys actually wanted. |
|
Nah @lassepe you're all good. PR is useful, we just can't merge until the issue is fixed! |
|
I can also mark the test as |
|
well first we need the allowscalar for it to run. but also the fix has landed upstream so hopefully in about a day when we have a new jll it will pass here! |
ea33bab to
cfcfaae
Compare
|
I've added the |
|
|
@lassepe your tupstack was transposed, this should resolve: however an unrelated optimization pass seems to cause breakage (cc @avik-pal if you've seen this recently) |
|
Thanks for catching the transpose bug. If this is the desired order of elements, it may be worth considering the substantially more readable version: @inline function Enzyme.tupstack(
data::Tuple{<:Reactant.RArray, Vararg{<:Reactant.RArray}},
outshape::Tuple{Vararg{Int}},
inshape::Tuple{Vararg{Int}},
)
return reshape(stack(data), outshape..., inshape...)
endThis would have the additional benefit of avoiding the risk of unitialized array elements when |
|
aa7a6ef to
97c29f3
Compare
|
okay with pending jll I fixed the batch issue. oddly there's something here still nondeterminstic: |
Adding the test case from EnzymeAD/Enzyme-JAX#1627