Skip to content

Commit c5caf06

Browse files
committed
rm view adjoint
1 parent b634651 commit c5caf06

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/zygote.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,6 @@ using .Zygote: @adjoint, _zero, forward
3737
@adjoint Base.reduce(::typeof(hcat), V::AbstractVector{<:AbstractVector}) =
3838
reduce(hcat, V), dV -> (nothing, collect(eachcol(dV)),)
3939

40-
# https://github.com/FluxML/Zygote.jl/pull/219
41-
@adjoint function view(x::AbstractArray, inds...; kwargs...)
42-
view(x, inds...; kwargs...), dy -> begin
43-
dx = _zero(x)
44-
copyto!(view(dx, inds...; kwargs...), dy)
45-
(dx, map(_->nothing, inds)...)
46-
end
47-
end
48-
4940
#===== Misc experiments =====#
5041

5142
@adjoint gluecol(V::AbstractVector) =

0 commit comments

Comments
 (0)