Skip to content

Commit

Permalink
Remove unnecessary update
Browse files Browse the repository at this point in the history
  • Loading branch information
richardreeve committed Nov 29, 2023
1 parent 6b1e719 commit 6e7c6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metrics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ end

# JSDivergence

@inline function eval_op(::JSDivergence, ai::T, bi::T) where T <: Real
@inline function eval_op(::JSDivergence, ai::T, bi::T) where T
u = (ai + bi) / 2
ta = ai == zero(T) ? zero(log(one(T))) : ai * log(ai) / 2
tb = bi == zero(T) ? zero(log(one(T))) : bi * log(bi) / 2
Expand Down

0 comments on commit 6e7c6d9

Please sign in to comment.