Skip to content

Commit

Permalink
Update src/compiler/interface.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Carlo Lucibello <carlo.lucibello@gmail.com>
  • Loading branch information
mcabbott and CarloLucibello committed Feb 1, 2021
1 parent 909cec5 commit bc18798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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.

This comment has been minimized.

Copy link
@DhairyaLGandhi

DhairyaLGandhi Feb 1, 2021

Member

This is not quite true, we do deal with non real output in several cases in sciml

"""
function gradient(f, args...)
y, back = pullback(f, args...)
Expand Down

0 comments on commit bc18798

Please sign in to comment.