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")