diff --git a/src/lib/array.jl b/src/lib/array.jl index 37884cded..8577852ad 100644 --- a/src/lib/array.jl +++ b/src/lib/array.jl @@ -329,6 +329,7 @@ end end # Reductions +#= @adjoint function sum(xs::AbstractArray; dims = :) if dims === (:) sum(xs), Δ -> (Fill(Δ, size(xs)),) @@ -336,6 +337,7 @@ end sum(xs, dims = dims), Δ -> (similar(xs) .= Δ,) end end +=# @adjoint function sum(xs::AbstractArray{Bool}; dims = :) sum(xs, dims = dims), Δ -> (nothing,)