Skip to content

Commit fbd3e7d

Browse files
committed
minor formatting change
1 parent 3e4c0e6 commit fbd3e7d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/rule_definition_tools.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,15 @@ function _make_projectors(xs)
227227
end
228228

229229
"""
230-
propagation_expr(Δs, ∂s, [_conj = false, proj = identity])
230+
propagation_expr(Δs, ∂s, [_conj=false, proj=identity])
231231
232232
Returns the expression for the propagation of
233233
the input gradient `Δs` though the partials `∂s`.
234234
Specify `_conj = true` to conjugate the partials.
235-
Projector `proj`, usually `ProjectTo(x)`, is applied at the end.
235+
Projector `proj` is a function that will be applied at the end;
236+
for `rrules` it is usually a `ProjectTo(x)`, for `frules` it is `identity`
236237
"""
237-
function propagation_expr(Δs, ∂s, _conj = false, proj = identity)
238+
function propagation_expr(Δs, ∂s, _conj=false, proj=identity)
238239
# This is basically Δs ⋅ ∂s
239240
_∂s = map(∂s) do ∂s_i
240241
if _conj

0 commit comments

Comments
 (0)