Skip to content

Commit cfa3201

Browse files
committed
typo
1 parent 98ca791 commit cfa3201

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
@@ -20,7 +20,7 @@ independent.
2020
softmax(xs; dims=1) = softmax!(similar(xs), xs, dims)
2121

2222
function softmax!(out::AbstractArray{T}, xs::AbstractArray{T}, dims) where {T}
23-
max = maximum(xs, dims)
23+
max = maximum(xs, dims=dims)
2424
out .= exp.(xs.-max)
2525
out ./= sum(out, dims=dims)
2626
return out

0 commit comments

Comments
 (0)