Skip to content

Commit ce8eb91

Browse files
whitespace
1 parent 4ba326f commit ce8eb91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/compiler/interface.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ sensitivity(y) = error("Output should be scalar; gradients are not defined for o
4848

4949
"""
5050
gradient(f, args...)
51+
5152
Returns a tuple containing `∂f/∂x` for each argument `x`,
5253
the derivative (for scalar x) or the gradient.
54+
5355
`f(args...)` must be a real number, see [`jacobian`](@ref) for array output.
5456
"""
5557
function gradient(f, args...)
@@ -144,6 +146,7 @@ end
144146
"""
145147
copy!(ps::Params, x::AbstractVector)
146148
copy!(x::AbstractVector, ps::Params)
149+
147150
Copies the content of array `x` into the parameters `ps` or viceversa.
148151
The length of `x` has to be equal to the sum of the lengths
149152
of all parameters.
@@ -202,6 +205,7 @@ end
202205
"""
203206
copy!(gs::Grads, x::AbstractVector)
204207
copy!(x::AbstractVector, gs::Grads)
208+
205209
Copies the content of array `x` into the gradient object `gs` or vice versa. The
206210
length of `x` has to be equal to the sum of the lengths of all gradients.
207211
"""

0 commit comments

Comments
 (0)