Solved by Passepartout in post #3 
              
              
                Thanks for the reply. I figured out that the following code can help here 
for item in embeddingLists:       
    tempItem = [stuff.unsqueeze(0)  for stuff in item]
    coomn = torch.cat(tempItem)             
    temMean = torch.mean(coomn,dim=0)
    meanVects.append(temMean)
    temVar = torch.var…