Skip to content

Commit 9c752dc

Browse files
authored
Remove mention of (now unsupported) kwargs (#162)
1 parent d45897a commit 9c752dc

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

docs/src/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ See the examples for a demonstration.
5858

5959
### Multiple inputs | Derivatives not needed
6060

61-
If your forward mapping (or conditions) takes multiple inputs but you don't care about derivatives, then you can add further positional and keyword arguments beyond `x`.
61+
If your forward mapping (or conditions) takes multiple inputs but you don't care about derivatives, then you can add further positional arguments beyond `x`.
6262
It is important to make sure that the forward mapping and conditions accept the same set of arguments, even if each of these functions only uses a subset of them.
6363

6464
```julia

ext/ImplicitDifferentiationChainRulesCoreExt.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@ using ImplicitDifferentiation:
1414
ImplicitDifferentiation.chainrules_suggested_backend(rc::RuleConfig) = AutoChainRules(rc)
1515

1616
function ChainRulesCore.rrule(
17-
rc::RuleConfig,
18-
implicit::ImplicitFunction,
19-
x::AbstractVector,
20-
args::Vararg{Any,N};
21-
kwargs...,
17+
rc::RuleConfig, implicit::ImplicitFunction, x::AbstractVector, args::Vararg{Any,N};
2218
) where {N}
23-
y, z = implicit(x, args...; kwargs...)
19+
y, z = implicit(x, args...)
2420

2521
suggested_backend = chainrules_suggested_backend(rc)
2622
Aᵀ = build_Aᵀ(implicit, x, y, z, args...; suggested_backend)

ext/ImplicitDifferentiationForwardDiffExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ using ForwardDiff: Dual, Partials, partials, value
55
using ImplicitDifferentiation: ImplicitFunction, build_A, build_B
66

77
function (implicit::ImplicitFunction)(
8-
x_and_dx::AbstractVector{Dual{T,R,N}}, args...; kwargs...
8+
x_and_dx::AbstractVector{Dual{T,R,N}}, args...
99
) where {T,R,N}
1010
x = value.(x_and_dx)
11-
y, z = implicit(x, args...; kwargs...)
11+
y, z = implicit(x, args...)
1212

1313
suggested_backend = AutoForwardDiff()
1414
A = build_A(implicit, x, y, z, args...; suggested_backend)

0 commit comments

Comments
 (0)