We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf9e186 commit a93ee1aCopy full SHA for a93ee1a
src/softmax.jl
@@ -1,6 +1,6 @@
1
using Base.Threads
2
3
-function softmax!(out::AbstractVecOrMat, xs::AbstractVecOrMat)
+function softmax!(out::AbstractVecOrMat{T}, xs::AbstractVecOrMat{T}) where T<:AbstractFloat
4
@threads for j = 1:size(xs, 2)
5
@inbounds begin
6
# out[end, :] .= maximum(xs, 1)
0 commit comments