[Solved][PyTorch] TypeError: expected Tensor as element 0 in argument 0, but got list
Problem
Today, when I was trying to use nn.Embedding()
to splice and calculate sentence vectors by myself, I got an error like this on the DataLoader
I prepared in advance: