torch.nn.functional.embedding
torch.nn.functional.embedding(input, weight, padding_idx=None, max_norm=None, norm_type=2.0, scale_grad_by_freq=False, sparse=False)
A simple lookup table that looks up embeddings in a fixed
   dictionary and size.
This module is often used to retrieve word embeddings using
   indices. The input to the module is a list of indices, and the
   embedding matrix, and the output is the corresponding word
   embeddings.
See "torch.nn.Embedding" for more details.
Parameters:
      * input (LongTensor) -- Tensor containing indices into the
        embedding matrix
  * **weight** (*Tensor*) -- The embedding matrix with number of
    rows equal to the maximum possible index + 1, and number of
    columns equal to the embedding size

  * **padding_idx** (*int**, **optional*) -- If specified, the
    entries at "padding_idx" do not contribute to the gradient;
