Skip to content

Commit

Permalink
Fix fake_transduce: completebasecase first (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf authored Feb 4, 2022
1 parent 0990683 commit bc96774
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/kernels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ function fake_transduce(rf, xs, init, ::Val{IncludeInit} = Val(false)) where {In
else
acc1 = fake_transduce(rf, xs, init)
acc2 = fake_transduce(rf, xs, init)
acc3 = _combine(rf, acc1, acc2)
acc4 = completebasecase(rf, acc3)
return acc4
acc3 = completebasecase(rf, acc1)
acc4 = completebasecase(rf, acc2)
acc5 = _combine(rf, acc3, acc4)
return acc5
end
end

Expand Down

0 comments on commit bc96774

Please sign in to comment.