i got this error
embedding_matrix = torch.stack(embeddings)
RuntimeError: stack expects each tensor to be equal size, but got [7, 768] at entry 0 and [8, 768] at entry 1
i got this error
embedding_matrix = torch.stack(embeddings)
RuntimeError: stack expects each tensor to be equal size, but got [7, 768] at entry 0 and [8, 768] at entry 1
Hi @as_ry, You cannot stack the different size arrays, all the arrays you are stacking will need to be in the same shape. As you are trying to stack the arrays of different size causing the error. Thank You.