Skip to content

Commit ad9a324

Browse files
committed
Missing unthunk
1 parent cbe6e38 commit ad9a324

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/TensorKitChainRulesCoreExt/linalg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function ChainRulesCore.rrule(
8080
end
8181

8282
function ChainRulesCore.rrule(::typeof(tr), A::AbstractTensorMap)
83-
tr_pullback(Δtr) = NoTangent(), scale!!(id!(similar(A)), Δtr)
83+
tr_pullback(Δtr) = NoTangent(), scale!!(id!(similar(A)), unthunk(Δtr))
8484
return tr(A), tr_pullback
8585
end
8686

0 commit comments

Comments
 (0)