File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -139,19 +139,19 @@ end
139139 view (A, I... ), view_adjoint
140140end
141141
142- function ChainRulesCore. ProjectTo (a:: AbstractVectorOfArray )
143- ChainRulesCore. ProjectTo {VectorOfArray} ((sz = size (a)))
144- end
145-
146- function (p:: ChainRulesCore.ProjectTo{VectorOfArray} )(x:: Union {
147- AbstractArray, AbstractVectorOfArray})
148- if eltype (x) <: Number
149- arr = reshape (x, p. sz)
150- return VectorOfArray ([arr[:, i] for i in 1 : p. sz[end ]])
151- elseif eltype (x) <: AbstractArray
152- return VectorOfArray (x)
153- end
154- end
142+ # function ChainRulesCore.ProjectTo(a::AbstractVectorOfArray)
143+ # ChainRulesCore.ProjectTo{VectorOfArray}((sz = size(a)))
144+ # end
145+ #
146+ # function (p::ChainRulesCore.ProjectTo{VectorOfArray})(x::Union{
147+ # AbstractArray, AbstractVectorOfArray})
148+ # if eltype(x) <: Number
149+ # arr = reshape(x, p.sz)
150+ # return VectorOfArray([arr[:, i] for i in 1:p.sz[end]])
151+ # elseif eltype(x) <: AbstractArray
152+ # return VectorOfArray(x)
153+ # end
154+ # end
155155
156156@adjoint function Broadcast. broadcasted (:: typeof (+ ), x:: AbstractVectorOfArray ,
157157 y:: Union{Zygote.Numeric, AbstractVectorOfArray} )
You can’t perform that action at this time.
0 commit comments