Skip to content

Commit

Permalink
undo mistakenly deleted line
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed Sep 28, 2023
1 parent 84cd7be commit a76e0ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rulesets/Base/indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function rrule(::typeof(getindex), x::T, i::Integer) where {T<:NTuple{<:Any,<:Nu
dx = ntuple(j -> j == i ? dy : zero(dy), _tuple_N(T))
return (NoTangent(), Tangent{T}(dx...), NoTangent())
end
return x[i], getindex_back_2
end

# Note Zygote has getindex(::Tuple, ::UnitRange) separately from getindex(::Tuple, ::AbstractVector),
Expand Down

0 comments on commit a76e0ae

Please sign in to comment.