Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
stas00 committed Sep 7, 2020
1 parent bdc88f0 commit 38cc9c1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/transformers/modeling_fsmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,8 +776,6 @@ def set_input_embeddings(self, value):

def get_output_embeddings(self):
return self.decoder.embed_tokens
# XXX: it was, but probably not needed here
# return _make_linear_from_emb(self.decoder.embed_tokens) # make it on the fly

def set_output_embeddings(self, value):
self.decoder.embed_tokens = value # self.decoder_embed_tokens = value
Expand Down

0 comments on commit 38cc9c1

Please sign in to comment.