Skip to content

Commit c7742bf

Browse files
committed
Minor refactor
1 parent 00cc8c3 commit c7742bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ChainRulesKernelAbstractionsExt/ChainRulesKernelAbstractionsExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ end
3232
@generated function _scatter!(i, op, dest, src, idims, Is::Vararg{Any, N}) where N
3333
quote
3434
is = @inbounds CartesianIndices(idims)[i]
35-
Base.Cartesian.@nexprs $N j -> I_j = @inbounds((Is[j])[is[j]])
3635
dv = src[i]
36+
Base.Cartesian.@nexprs $N j -> I_j = @inbounds((Is[j])[is[j]])
3737
Base.Cartesian.@ncall $N _accum! op dest dv j -> I_j
3838
end
3939
end

0 commit comments

Comments
 (0)