Skip to content

Commit

Permalink
min in softmin
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed May 26, 2020
1 parent 93e807b commit cdc506e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dtw.jl
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ const LVB = LoopVectorization.VectorizationBase
ninvγ = one(T) / γ
v = LVB.SVec{4,T}((a, b, c, typemax(T)))
v = v * ninvγ
maxv = maximum(v)#Base.FastMath.max_fast(a,b,c) * ninvγ
@fastmath maxv = min(a,b,c) * ninvγ
ve = exp(v - maxv) * LVB.SVec{4,T}((one(T), one(T), one(T), zero(T)))
γ*(log(sum(ve)) + maxv)
end

0 comments on commit cdc506e

Please sign in to comment.