We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@warn
out.log The code below segfaults on Julia 1.10 and Enzyme v0.13.13
using Enzyme import .EnzymeRules: augmented_primal, reverse, Annotation, has_rrule_from_sig using .EnzymeRules mutable struct Model end function bar!() @warn "segfaulting soon" # Doesn't sefault with a println # println("segfaulting soon") return nothing end function loop(body::Function, model) body(model) return model end function augmented_primal(config, func::Const{typeof(loop)}, ret, body, model, ) func.val(body.val, model.val) return AugmentedReturn(nothing, nothing, nothing) end function reverse(config, ::Const{typeof(loop)}, dret::Type{<:Const}, tape, body, model::Duplicated,) rev_loop(body.val, model.val, model.dval) return (nothing, nothing) end function rev_loop( body::Function, model::MT, shadowmodel::MT, ) where {MT} body(model) Enzyme.autodiff(Reverse, Const(body), Duplicated(model, shadowmodel)) end function foo(model) model = loop(model) do model bar!() end return nothing end model = Model() dmodel = Enzyme.make_zero(model) foo(model) autodiff(Enzyme.Reverse, foo, Duplicated(model, dmodel))
The text was updated successfully, but these errors were encountered:
does it err on main?
Sorry, something went wrong.
Yes. I added the output log that I forgot.
No branches or pull requests
out.log
The code below segfaults on Julia 1.10 and Enzyme v0.13.13
The text was updated successfully, but these errors were encountered: