


weights[0, :].zero_()
      >>> embedding_matrix = weights
      >>> input = torch.tensor([[0, 2, 0, 5]])
      >>> F.embedding(input, embedding_matrix, padding_idx=0)
      tensor([[[ 0.0000,  0.0000,  0.0000],
               [ 0.5609,  0.5384,  0.8720],
               [ 0.0000,  0.0000,  0.0000],
               [ 0.6262,  0.2438,  0.7471]]])


