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