Skip to content

Commit b554abc

Browse files
namespace
1 parent 6af53d5 commit b554abc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/zygote.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ function ChainRulesCore.rrule(::typeof(getproperty),A::ArrayPartition, s::Symbol
4444
end
4545

4646
# Define a new species of projection operator for this type:
47-
ChainRulesCore.ProjectTo(x::VectorOfArray) = ProjectTo{VectorOfArray}()
47+
ChainRulesCore.ProjectTo(x::VectorOfArray) = ChainRulesCore.ProjectTo{VectorOfArray}()
4848

4949
# Gradient from iteration will be e.g. Vector{Vector}, this makes it another AbstractMatrix
50-
(::ProjectTo{VectorOfArray})(dx::AbstractVector{<:AbstractArray}) = VectorOfArray(dx)
50+
(::ChainRulesCore.ProjectTo{VectorOfArray})(dx::AbstractVector{<:AbstractArray}) = VectorOfArray(dx)
5151
# Gradient from broadcasting will be another AbstractArray
52-
(::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)