Skip to content

Commit b521082

Browse files
authored
Merge pull request #519 from JuliaDiff/mz/unthunk
unthunk in diagm
2 parents b7eb654 + aca0deb commit b521082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rulesets/LinearAlgebra/structured.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ end
9595

9696
function _diagm_back(p, ȳ)
9797
k, v = p
98-
d = diag(, k)[1:length(v)] # handle if diagonal was smaller than matrix
98+
d = diag(unthunk(ȳ), k)[1:length(v)] # handle if diagonal was smaller than matrix
9999
return Tangent{typeof(p)}(second = d)
100100
end
101101

0 commit comments

Comments
 (0)