torch.cat expects a tuple of tensors. So you need to provide it tensors as (a,b,c) and then it will concatenate those like in the example I showed above. In your case embeddings is a python list, which will not work.