Raghavan commited on
Commit
1094abe
1 Parent(s): 2af0a6c

Upload 7 files

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