Skip to content

Commit

Permalink
Changed timer label sum->sum_outgrads.
Browse files Browse the repository at this point in the history
  • Loading branch information
denizyuret committed Sep 18, 2018
1 parent 9657fb3 commit b882a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function differentiate(f, x...; o...)
if !isassigned(n.parents, i); continue; end
p = n.parents[i]
@timer tm(r,i) (g = back(r.func, Arg{i}, n.outgrad, r, r.args...; r.kwargs...))
@timer "sum" (p.outgrad = sum_outgrads(p.outgrad, g))
@timer "sum_outgrads" (p.outgrad = sum_outgrads(p.outgrad, g))
end
if isempty(_tapes) && isa(r,Result); n.outgrad = nothing; end # saves memory
end
Expand Down

0 comments on commit b882a0d

Please sign in to comment.