-
Notifications
You must be signed in to change notification settings - Fork 66
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
BoundsError in following mwe #2082
Comments
the culprit is the attributor, naturally |
some slight reductions: wmoses@beast:~/git/Enzyme.jl ((HEAD detached at origin/main)) $ cat b.jl
using Enzyme
using LinearAlgebra
# Enzyme.Compiler.DumpPostWrap[] = true
# Enzyme.Compiler.DumpPostOpt[] = true
const Z = [1.0 0.0;
0.0 -1.0]
const X = [0.0 1.0;
1 0]
function dfunc(du,u,p,t)
amp = p[t]
mul!(du,Z,u,1.0,0.0)
mul!(du,X,u,amp,1.0)
nothing
end
u0 = rand(2)
du0 = zero(u0)
p = rand(10)
der_u0 = make_zero(u0)
der_du0 = make_zero(du0)
der_p = make_zero(p)
@show p, der_p
dfunc(du0, u0, p, 1)
autodiff(Reverse,dfunc,Const,Duplicated(du0,der_du0),Duplicated(u0,der_u0),Duplicated(p,der_p),Const(1))
wmoses@beast:~/git/Enzyme.jl ((HEAD detached at origin/main)) $ |
okay we will work arouond this in the next jll bump with this fix: EnzymeAD/Enzyme#2166 |
Fix has landed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gives the output
gives same error on 0.12.6 , 0.13.14 .
enzyme 0.12.5 would prompt to enable runtime activity,
The text was updated successfully, but these errors were encountered: