fix: TransformerListener with TextCatEnsemble (#6951)

* bug: Regression test
Issue #6946

* fix: Fix issue #6946

* chore: Remove regression test
This commit is contained in:
René Octavio Queiroz Dias 2021-02-06 09:44:51 -03:00 committed by GitHub
parent 433835d9b0
commit 59271e887a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,6 +107,7 @@ def init_ensemble_textcat(model, X, Y) -> Model:
model.get_ref("maxout_layer").set_dim("nO", tok2vec_width) model.get_ref("maxout_layer").set_dim("nO", tok2vec_width)
model.get_ref("maxout_layer").set_dim("nI", tok2vec_width) model.get_ref("maxout_layer").set_dim("nI", tok2vec_width)
model.get_ref("norm_layer").set_dim("nI", tok2vec_width) model.get_ref("norm_layer").set_dim("nI", tok2vec_width)
model.get_ref("norm_layer").set_dim("nO", tok2vec_width)
init_chain(model, X, Y) init_chain(model, X, Y)
return model return model