According to the official API specification of ChainRulesCore.jl, frule_via_ad should accept all the arguments of the function as a destructured tuple: https://juliadiff.org/ChainRulesCore.jl/stable/api.html#ChainRulesCore.frule_via_ad
However, it seems that ForwardDiffChainRules.jl only accepts one argument:
|
function ChainRulesCore.frule_via_ad( |
|
config::ForwardDiffRuleConfig, |
|
tangent, |
|
f, |
|
f_arg; |
|
kwargs..., |
|
) |
I think this is the reason for a bug in my code. Do you think it is fixable?
According to the official API specification of ChainRulesCore.jl,
frule_via_adshould accept all the arguments of the function as a destructured tuple: https://juliadiff.org/ChainRulesCore.jl/stable/api.html#ChainRulesCore.frule_via_adHowever, it seems that ForwardDiffChainRules.jl only accepts one argument:
ForwardDiffChainRules.jl/src/ForwardDiffChainRules.jl
Lines 46 to 52 in 609201f
I think this is the reason for a bug in my code. Do you think it is fixable?