Skip to content

Commit 85bfcca

Browse files
committed
Embedding special case for outputsize
1 parent 658effc commit 85bfcca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/outputsize.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,6 @@ for (fn, Dims) in ((:conv, DenseConvDims), (:depthwiseconv, DepthwiseConvDims))
168168
end
169169
end
170170
end
171+
172+
(m::Embedding)(x::AbstractVector{<:Nil}) = fill(nil, size(m.weight, 1), length(x))
173+
(m::Embedding)(x::AbstractArray{<:Nil}) = fill(nil, size(m.weight, 1), last(size(x)))

0 commit comments

Comments
 (0)