pranjalchitale commited on
Commit
20ef3db
·
verified ·
1 Parent(s): 4000789

Update modeling_indictrans.py

Browse files
Files changed (1) hide show
  1. modeling_indictrans.py +1 -1
modeling_indictrans.py CHANGED
@@ -1656,7 +1656,7 @@ class IndicTransForConditionalGeneration(IndicTransPreTrainedModel, GenerationMi
1656
  self.post_init()
1657
 
1658
  def tie_weights(self):
1659
-       if self.config.share_decoder_input_output_embed:
1660
            self._tie_or_clone_weights(self.decoder.embed_tokens, self.lm_head)
1661
 
1662
  def get_encoder(self):
 
1656
  self.post_init()
1657
 
1658
  def tie_weights(self):
1659
+ if self.config.share_decoder_input_output_embed:
1660
            self._tie_or_clone_weights(self.decoder.embed_tokens, self.lm_head)
1661
 
1662
  def get_encoder(self):