Skip to content

frule_via_ad should accept several arguments #12

@gdalle

Description

@gdalle

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions