Update tok2vec

This commit is contained in:
Matthew Honnibal 2020-08-28 18:28:28 +02:00
parent 047f3ba10c
commit 927dcdafcd

View File

@ -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: