Thank you for your reply.
I think padding_idx=-1 means -1 map to [0., 0., 0.], as the example of https://pytorch.org/docs/stable/nn.html#embedding 33, but is it not correct?
Probably, does padding_idx=-1 mean there are no padding index?