Skip to content
This repository has been archived by the owner on Apr 30, 2022. It is now read-only.

Commit

Permalink
fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo committed Sep 23, 2019
1 parent 2545ea2 commit 821e76d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Diff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function backward_params!(st, block::Diff{<:DiffBlock}, collector)
in, outδ = st
Σ = generator(content(block))
g = dropdims(sum(conj.(statevec(in |> Σ)) .* statevec(outδ), dims=1), dims=1)
pushfirst!(collector, -g |> imag)
pushfirst!(collector, -g[1] |> imag)
in |> Σ
nothing
end
Expand Down

0 comments on commit 821e76d

Please sign in to comment.