Skip to content

Commit c84842a

Browse files
comment out extra projection
1 parent fe2db07 commit c84842a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zygote.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ChainRulesCore.ProjectTo(x::VectorOfArray) = ChainRulesCore.ProjectTo{VectorOfAr
4949
# Gradient from iteration will be e.g. Vector{Vector}, this makes it another AbstractMatrix
5050
(::ChainRulesCore.ProjectTo{VectorOfArray})(dx::AbstractVector{<:AbstractArray}) = VectorOfArray(dx)
5151
# Gradient from broadcasting will be another AbstractArray
52-
(::ChainRulesCore.ProjectTo{VectorOfArray})(dx::AbstractArray) = dx
52+
#(::ChainRulesCore.ProjectTo{VectorOfArray})(dx::AbstractArray) = dx
5353

5454
# These rules duplicate the `rrule` methods above, because Zygote looks for an `@adjoint`
5555
# definition first, and finds its own before finding those.

0 commit comments

Comments
 (0)