mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
Update tok2vec
This commit is contained in:
parent
047f3ba10c
commit
927dcdafcd
|
@ -296,6 +296,7 @@ def forward(model: Tok2VecListener, inputs, is_train: bool):
|
|||
model.verify_inputs(inputs)
|
||||
return model._outputs, model._backprop
|
||||
else:
|
||||
width = model.get_dim("nO")
|
||||
if model._outputs is None:
|
||||
outputs = [model.ops.alloc2f(len(doc), width) for doc in inputs]
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user