I have text tensor a with 64 x 4 x 3 x 30
and I want to make word embedding with nn.Embedding()
then which is right?




b = nn.Embedding(20000, 300)
b(a)





b = nn.Embedding(20000, 300)
a = a.view(-1, 30)
a = b(a)
a = a.view(-1, 4, 3, 30)