Skip to content

Commit

Permalink
correct order when calling back into AD
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox authored Apr 5, 2024
1 parent 9e1b91c commit 6102c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stage1/forward.jl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ for V in (false, true)
end

function ChainRulesCore.frule_via_ad(::DiffractorRuleConfig, partials, args...)
bundles = map(bundle, partials, args)
bundles = map(bundle, args, partials)
result = ∂☆internal{1,false}()(bundles...)
primal(result), first_partial(result)
end
Expand Down

0 comments on commit 6102c01

Please sign in to comment.