Train nn.embedding

I want to initialize nn.embedding, then train it as well. but when i check the model.embedding.weight before and after the training, it doesn’t change. how do i make it so that the weights change?

Double post from here.
Let’s continue the discussion in the other thread, please.