Upload 7 files
Browse files- 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,
|