Skip to content

Commit

Permalink
Merge pull request #260 from JuliaDiff/ox/not_explict_order_1
Browse files Browse the repository at this point in the history
Don't use ExplictTangentBundle in frule_via_ad
  • Loading branch information
oxinabox authored Feb 9, 2024
2 parents 0b5a05a + e722d6b commit 2621762
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 @@ -126,7 +126,7 @@ function _frule(::NTuple{<:Any, AbstractZero}, f, primal_args...)
end

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

0 comments on commit 2621762

Please sign in to comment.