Skip to content

Commit

Permalink
Increase symmetry
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed May 3, 2024
1 parent aeb1d23 commit 15b0cba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tracers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,8 @@ HessianTracer(t::HessianTracer) = t
# Turn first-order interactions into second-order interactions
function promote_order(t::HessianTracer)
d = deepcopy(t.inputs)
ks = keys(d)
for (k, v) in pairs(d)
d[k] = reduce(union, ks; init=v)
d[k] = reduce(union, keys(d); init=v)
end
return HessianTracer(d)
end
Expand Down

0 comments on commit 15b0cba

Please sign in to comment.