Skip to content

Commit a9642c1

Browse files
committed
-where T
1 parent b43fbe4 commit a9642c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/softmax.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ end
6868
way than directly taking the log of the softmax function, which is commonly used in
6969
computing cross entropy loss.
7070
"""
71-
function logsoftmax(xs::AbstractArray{T}; dims=1) where {T}
71+
function logsoftmax(xs::AbstractArray; dims=1)
7272
max_ = maximum(xs, dims=dims)
7373
out = exp.(xs .- max_)
7474
log_ = log.(sum(out, dims=dims))

0 commit comments

Comments
 (0)