Skip to content

Commit aca0deb

Browse files
author
Miha Zgubic
committed
unthunk in diagm
1 parent ddc4677 commit aca0deb

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,6 +1,6 @@
11
name = "ChainRules"
22
uuid = "082447d4-558c-5d27-93f4-14fc19e9eca2"
3-
version = "1.11.1"
3+
version = "1.11.2"
44

55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"

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)