Skip to content

Commit 75f0e9c

Browse files
Update src/onehot.jl
Co-authored-by: Carlo Lucibello <carlo.lucibello@gmail.com>
1 parent 5ac7a3d commit 75f0e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/onehot.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ end
228228

229229
function Base.:(*)(A::AbstractMatrix, B::OneHotMatrix{<:Any, L}) where L
230230
size(A, 2) == L || throw(DimensionMismatch("Matrix column must correspond with OneHot size: $(size(A, 2)) != $L"))
231-
return NNlib.gather(A, B.indices)
231+
return NNlib.gather(A, _indices(B))
232232
end
233233

234234
function Base.:(*)(A::AbstractMatrix, B::Adjoint{Bool, <:OneHotMatrix})

0 commit comments

Comments
 (0)