pranjalchitale commited on
Commit
01f727d
·
1 Parent(s): 0468772

Fixes TieWeights

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