Maybe I don’t make this question clear.
I know we can just put the index of word to nn.Embedding and then we can get the word vector.
But if the nn.Embedding is just a lookup table, how can it use BP algorithm to optimize its weight.(If it don’t do matrix multiply.)