From f2f92299647bab7d8d3cc29a5c37332729cd8135 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 20 Aug 2017 18:19:06 +0200 Subject: [PATCH] Fix name of update_shared flag --- spacy/cli/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/train.py b/spacy/cli/train.py index 04aac8319..449ccff68 100644 --- a/spacy/cli/train.py +++ b/spacy/cli/train.py @@ -92,7 +92,7 @@ def train(cmd, lang, output_dir, train_data, dev_data, n_iter=20, n_sents=0, docs, golds = zip(*batch) nlp.update(docs, golds, sgd=optimizer, drop=next(dropout_rates), losses=losses, - update_tensors=True) + update_shared=True) pbar.update(sum(len(doc) for doc in docs)) with nlp.use_params(optimizer.averages):