We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbe6e38 commit ad9a324Copy full SHA for ad9a324
1 file changed
ext/TensorKitChainRulesCoreExt/linalg.jl
@@ -80,7 +80,7 @@ function ChainRulesCore.rrule(
80
end
81
82
function ChainRulesCore.rrule(::typeof(tr), A::AbstractTensorMap)
83
- tr_pullback(Δtr) = NoTangent(), scale!!(id!(similar(A)), Δtr)
+ tr_pullback(Δtr) = NoTangent(), scale!!(id!(similar(A)), unthunk(Δtr))
84
return tr(A), tr_pullback
85
86
0 commit comments