From 3cff201446fc10203ac8548a0ee6f543dc0ce5d8 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 26 Dec 2021 12:41:52 +0100 Subject: [PATCH] Remove padding in with_array --- spacy/ml/models/tok2vec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/ml/models/tok2vec.py b/spacy/ml/models/tok2vec.py index a38e95e82..f23fddc94 100644 --- a/spacy/ml/models/tok2vec.py +++ b/spacy/ml/models/tok2vec.py @@ -478,7 +478,7 @@ def MaxoutWindowEncoder_ragged( model = clone(residual(cnn), depth) # type: ignore[arg-type] model.set_dim("nO", width) receptive_field = window_size * depth - return with_array(model, pad=receptive_field) # type: ignore[arg-type] + return with_array(model) # type: ignore[arg-type] @registry.architectures("spacy.MishWindowEncoder.v2")