Skip to content

Commit a113ca8

Browse files
fix VectorOfArray adjoint
1 parent 6a5d121 commit a113ca8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "RecursiveArrayTools"
22
uuid = "731186ca-8d62-57ce-b412-fbd966d074cd"
33
authors = ["Chris Rackauckas <[email protected]>"]
4-
version = "2.0.1"
4+
version = "2.0.2"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

src/zygote.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ZygoteRules.@adjoint function getindex(VA::AbstractVectorOfArray, i, j...)
1111
function AbstractVectorOfArray_getindex_adjoint(Δ)
1212
Δ′ = zero(VA)
1313
Δ′[i,j...] = Δ
14-
(Δ′, map(_ -> nothing, i)...)
14+
(Δ′, i,map(_ -> nothing, j)...)
1515
end
1616
VA[i,j...],AbstractVectorOfArray_getindex_adjoint
1717
end

0 commit comments

Comments
 (0)