Skip to content

Commit fe2db07

Browse files
Update src/zygote.jl
Co-authored-by: Michael Abbott <32575566+mcabbott@users.noreply.github.com>
1 parent b554abc commit fe2db07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zygote.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function ChainRulesCore.rrule(::typeof(getindex),VA::AbstractVectorOfArray, indi
1010
function AbstractVectorOfArray_getindex_adjoint(Δ)
1111
Δ′ = zero(VA)
1212
Δ′[indices...] = Δ
13-
(NoTangent(), VectorOfArray(Δ′), indices[1],map(_ -> NoTangent(), indices[2:end])...)
13+
(NoTangent(), VectorOfArray(Δ′), map(_ -> NoTangent(), indices)...)
1414
end
1515
VA[indices...],AbstractVectorOfArray_getindex_adjoint
1616
end

0 commit comments

Comments
 (0)