pranjalchitale
commited on
Commit
·
1438be5
1
Parent(s):
5a72625
Fix TieWeights
Browse files- modeling_indictrans.py +1 -1
modeling_indictrans.py
CHANGED
@@ -1658,7 +1658,7 @@ class IndicTransForConditionalGeneration(IndicTransPreTrainedModel, GenerationMi
|
|
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
|
|
|
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
|