Skip to content

Commit efc8fcf

Browse files
committed
DOcs
1 parent 025367c commit efc8fcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DifferentiationInterface/docs/src/dev_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Most operators have 4 variants, which look like this in the first order: `operat
2323
To implement a new operator for an existing backend, you need to write 5 methods: 1 for [preparation](@ref Preparation) and 4 corresponding to the variants of the operator (see above).
2424
For first-order operators, you may also want to support [in-place functions](@ref "Mutation and signatures"), which requires another 5 methods (defined on `f!` instead of `f`).
2525

26-
The method `prepare_operator_kwarg` must output a `prep` object of the correct type.
26+
The method `prepare_operator_nokwarg` must output a `prep` object of the correct type.
2727
For instance, `prepare_gradient(strict, f, backend, x)` must return a [`DifferentiationInterface.GradientPrep`](@ref).
2828
Assuming you don't need any preparation for said operator, you can use the trivial prep that are already defined, like `DifferentiationInterface.NoGradientPrep{SIG}`.
2929
Otherwise, define a custom struct like `MyGradientPrep{SIG} <: DifferentiationInterface.GradientPrep{SIG}` and put the necessary storage in there.

0 commit comments

Comments
 (0)