Skip to content

Commit d18ab25

Browse files
authored
Update src/adjoint.jl
1 parent 2501722 commit d18ab25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/adjoint.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ function gradm(ex, mut = false, keepthunks = false)
7979
back(::Nothing) = nothing
8080
back::AbstractZero) = $gradtuplekw(ntuple(_ -> Δ, $(length(args))))
8181
end)
82+
$maybe_unthunk
8283
back(Δ) = $gradtuplekw(_back(Δ))
8384
return y, back
8485
end

0 commit comments

Comments
 (0)