Skip to content

Commit 6102c01

Browse files
authored
correct order when calling back into AD
1 parent 9e1b91c commit 6102c01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stage1/forward.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ for V in (false, true)
221221
end
222222

223223
function ChainRulesCore.frule_via_ad(::DiffractorRuleConfig, partials, args...)
224-
bundles = map(bundle, partials, args)
224+
bundles = map(bundle, args, partials)
225225
result = ∂☆internal{1,false}()(bundles...)
226226
primal(result), first_partial(result)
227227
end

0 commit comments

Comments
 (0)