You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
output_value, back = ChainRulesCore.rrule($f, map(ReverseDiff.value, args)...; $kwargs...)
which shows that the rrule is used with no optional RuleConfig argument. This is proving cumbersome for ImplicitDifferentiation.jl, where the rrule needs to call back into AD and thus dispatch on the AD backend (aka RuleConfig).
Would you be open to a PR defining the following config?
using ChainRulesCore: RuleConfig, HasReverseMode, NoForwardsMode
struct MyReverseDiffRuleConfig <:RuleConfig{Union{HasReverseMode,NoForwardsMode}}end
I would need advice on how to add it to the macro though.
The macro
@grad_from_chainrules
contains the following lineReverseDiff.jl/src/macros.jl
Line 338 in 6c7b9cf
which shows that the
rrule
is used with no optionalRuleConfig
argument. This is proving cumbersome for ImplicitDifferentiation.jl, where therrule
needs to call back into AD and thus dispatch on the AD backend (akaRuleConfig
).Would you be open to a PR defining the following config?
I would need advice on how to add it to the macro though.
Pinging @mohamed82008
The text was updated successfully, but these errors were encountered: