Bug of nn.Embedding when `sparse=True` and `padding_idx` is set

this is indeed a bug. I’ve opened and issue, we’ll get this fixed https://github.com/pytorch/pytorch/issues/3506

1 Like