Skip to content

Commit c611f03

Browse files
committed
Fix incompatibility with Zygote 0.7
1 parent 48dceda commit c611f03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/QuantumControlChainRulesCoreExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function ChainRulesCore.rrule(::typeof(getproperty), traj::Trajectory, name::Sym
2020
else
2121
# kwargs-stored property: route gradient back into the kwargs Dict
2222
function kwargs_pullback(Δ)
23-
dkwargs = Dict{Symbol,Any}(name => Δ)
23+
dkwargs = Dict{Symbol,Any}(name => ChainRulesCore.unthunk(Δ))
2424
dt = ChainRulesCore.Tangent{typeof(traj)}(; kwargs = dkwargs)
2525
return NoTangent(), dt, NoTangent()
2626
end

0 commit comments

Comments
 (0)