Skip to content

Commit 5f7ce6b

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

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/onehot.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ function Base.:(*)(A::AbstractMatrix, B::OneHotLike{<:Any, L}) where L
227227
end
228228

229229
function Base.:(*)(A::AbstractMatrix, B::OneHotMatrix{<:Any, L}) where L
230-
_isonehot(B) || return invoke(*, Tuple{AbstractMatrix, AbstractMatrix}, A, B)
231230
size(A, 2) == L || throw(DimensionMismatch("Matrix column must correspond with OneHot size: $(size(A, 2)) != $L"))
232231
return NNlib.gather(A, B.indices)
233232
end

0 commit comments

Comments
 (0)