Skip to content

Commit

Permalink
rm 2 commented lines
Browse files Browse the repository at this point in the history
Co-authored-by: Frames White <[email protected]>
  • Loading branch information
mcabbott and oxinabox authored Jul 12, 2023
1 parent dd4f952 commit f18f61d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/rulesets/Base/mapreduce.jl
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,8 @@ function rrule(
hobbits = accumulate(list; init = (start, nothing)) do (a, _), b
c, back = rrule_via_ad(config, op, a, b)
end
# y = map(first, hobbits)
if init === nothing
# `hobbits` is one short, and first one doesn't invoke `op`
# y = _vcat1(first(x), y)
y[1] = first(x)
map!(first, @view(y[2:end]), hobbits)
else
Expand Down

0 comments on commit f18f61d

Please sign in to comment.