Skip to content

Commit

Permalink
flairNLPGH-1270: fix memory issue in PooledFlairEmbeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
alanakbik committed Jan 7, 2020
1 parent 1626111 commit 89a14c9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion flair/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2144,7 +2144,6 @@ def _add_embeddings_internal(self, sentences: List[Sentence]) -> List[Sentence]:

# update embedding
local_embedding = token._embeddings[self.context_embeddings.name]
local_embedding = local_embedding.to(flair.device)

# check token.text is empty or not
if token.text:
Expand Down

0 comments on commit 89a14c9

Please sign in to comment.