Hi there,
What’s the differences between nn.Embedding and nn.Parameters when I only need to access the the word embedding by indices?
Suppose:

the word indices are W = [1, 2, 3, 4, 5, 0], which is a LongTensor.
E = nn.Embedding(10, 2)
P = torch.Tensor(10, 2).uniform_(-0.1, 0.1).requires_grad_()

If I want to access the embedding of the corresponding words. what’s the differences between the following two ways:
E(W)
and
P[W, :]
?
Any efficiency differences?