From bc187985e27449f95bfc8014f5133450e30c40be Mon Sep 17 00:00:00 2001 From: Michael Abbott <32575566+mcabbott@users.noreply.github.com> Date: Mon, 1 Feb 2021 10:39:19 +0100 Subject: [PATCH] Update src/compiler/interface.jl Co-authored-by: Carlo Lucibello --- src/compiler/interface.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/interface.jl b/src/compiler/interface.jl index 4535d946e..58a09dd9e 100644 --- a/src/compiler/interface.jl +++ b/src/compiler/interface.jl @@ -51,7 +51,7 @@ sensitivity(y) = error("Output should be scalar; gradients are not defined for o Returns a tuple containing `∂f/∂x` for each argument `x`, the derivative (for scalar x) or the gradient. -`f(x)` must be a real number, see [`jacobian`](@ref) for array output. +`f(args...)` must be a real number, see [`jacobian`](@ref) for array output. """ function gradient(f, args...) y, back = pullback(f, args...)