Closed sajia28 closed 3 years ago
The embedding layer is just a lookup table that accepts a list of indices as input and outputs each index's corresponding embedding vector.
You can implement it using pytorch: https://pytorch.org/docs/stable/generated/torch.nn.Embedding.html
The embedding layer is just a lookup table that accepts a list of indices as input and outputs each index's corresponding embedding vector.
You can implement it using pytorch: https://pytorch.org/docs/stable/generated/torch.nn.Embedding.html