Using the Lexical Model (Λ) with a Base Dense Retriever as in SPAR

#1
by anupradhan - opened

I am getting the following error when i try to run the code snippet.

RuntimeError Traceback (most recent call last)
in
3 dim=-1,
4 )
----> 5 spar_ctx_emb = torch.cat(
6 [dpr_ctx_emb, lexmodel_ctx_emb],
7 dim=-1,

RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 2 but got size 4 for tensor number 1 in the list.

Sign up or log in to comment