Raghavan commited on
Commit
66ed51c
1 Parent(s): 121271e

Upload 7 files

Browse files
Files changed (1) hide show
  1. modeling_indictrans.py +1 -1
modeling_indictrans.py CHANGED
@@ -613,7 +613,7 @@ class IndicTransEncoder(IndicTransPreTrainedModel):
613
  sentence_embedding = torch.einsum(
614
  "i...,i ->i...", sentence_embedding, weights
615
  )
616
- return sentence_embedding
617
 
618
  def forward(
619
  self,
 
613
  sentence_embedding = torch.einsum(
614
  "i...,i ->i...", sentence_embedding, weights
615
  )
616
+ return sentence_embedding.unsqueeze(1)
617
 
618
  def forward(
619
  self,