Skip to content

Commit

Permalink
GH-19: removed commented out lines
Browse files Browse the repository at this point in the history
  • Loading branch information
aakbik committed Jul 30, 2018
1 parent ebf76b9 commit f437bf3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions flair/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,6 @@ def _add_embeddings_internal(self, sentences: List[Sentence]) -> List[Sentence]:
else:
word_embedding = np.zeros(self.embedding_length, dtype='float')

# if torch.cuda.is_available():
# word_embedding = torch.cuda.FloatTensor(word_embedding)
# else:
word_embedding = torch.FloatTensor(word_embedding)

token.set_embedding(self.name, word_embedding)
Expand Down

0 comments on commit f437bf3

Please sign in to comment.