Skip to content

Commit 9dee1cc

Browse files
committed
set default dimension to 1
1 parent 3b85e46 commit 9dee1cc

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
@@ -17,7 +17,7 @@ independent.
1717
0.244728
1818
0.665241
1919
"""
20-
softmax(xs; dims=2) = softmax!(similar(xs), xs, dims)
20+
softmax(xs; dims=1) = softmax!(similar(xs), xs, dims)
2121

2222
function softmax!(out::AbstractVecOrMat{T}, xs::AbstractVecOrMat{T}, dims) where {T}
2323
# First, store column-wise maximum in the last element of `out`

0 commit comments

Comments
 (0)