Hi…thank you,
I’m bit confused with the answer… am I trying to embed a token which is not in vocabulary or is it issue with the length of the question!!
here is my embedding layer initialization…
    self.embedding = nn.Sequential(
        nn.Embedding(vocab_size, embed_dim, padding_idx=0),
        # nn.Linear(vocab_size, embed_dim),
        nn.Tanh())