Skip to content

Commit 14b9a39

Browse files
committed
comment
1 parent 8d06324 commit 14b9a39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/projection.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ ProjectTo(::Any) = identity
128128
ProjectTo(::AbstractZero) = ProjectTo{NoTangent}() # Any x::Zero in forward pass makes this one projector,
129129
(::ProjectTo{NoTangent})(dx) = NoTangent() # but this is the projection only for nonzero gradients,
130130
(::ProjectTo{NoTangent})(dx::AbstractZero) = dx # and this one solves an ambiguity.
131-
(::ProjectTo{NoTangent})(::AbstractThunk) = NoTangent() # #685
132-
(::ProjectTo{NoTangent})(::Thunk) = NoTangent()
131+
(::ProjectTo{NoTangent})(::AbstractThunk) = NoTangent() # solves ambiguity, #685
132+
(::ProjectTo{NoTangent})(::Thunk) = NoTangent() # solves ambiguity, #685
133133

134134
# Also, any explicit construction with fields, where all fields project to zero, itself
135135
# projects to zero. This simplifies projectors for wrapper types like Diagonal([true, false]).

0 commit comments

Comments
 (0)