mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 18:56:36 +03:00
Dont use iterated convolutions
This commit is contained in:
parent
c013e5996f
commit
2148ae605b
|
@ -252,11 +252,8 @@ def Tok2Vec(width, embed_size, pretrained_dims=0):
|
||||||
embed
|
embed
|
||||||
>> with_flatten(
|
>> with_flatten(
|
||||||
Affine(width, width+pretrained_dims)
|
Affine(width, width+pretrained_dims)
|
||||||
>> convolution
|
>> convolution ** 4,
|
||||||
>> convolution
|
pad=4)
|
||||||
>> convolution
|
|
||||||
>> convolution,
|
|
||||||
pad=1)
|
|
||||||
)
|
)
|
||||||
# Work around thinc API limitations :(. TODO: Revise in Thinc 7
|
# Work around thinc API limitations :(. TODO: Revise in Thinc 7
|
||||||
tok2vec.nO = width
|
tok2vec.nO = width
|
||||||
|
|
Loading…
Reference in New Issue
Block a user