Skip to content

Commit

Permalink
Merge pull request #2073 from djstrong/patch-8
Browse files Browse the repository at this point in the history
Fix linear input dimension if the reproject
  • Loading branch information
alanakbik authored Feb 2, 2021
2 parents 5473bfa + e6f2c9d commit 69a4921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flair/models/sequence_tagger_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def __init__(
)
else:
self.linear = torch.nn.Linear(
self.embeddings.embedding_length, len(tag_dictionary)
rnn_input_dim, len(tag_dictionary)
)

if self.use_crf:
Expand Down

0 comments on commit 69a4921

Please sign in to comment.