Open FAhtisham opened 3 years ago
What does the frequency represent in positional encoding ? Why do we need to multiply it with the positional values?
frequencies = torch.pow(10000., -torch.arange(0, model_dimension, 2, dtype=torch.float) / model_dimension)
What does the frequency represent in positional encoding ? Why do we need to multiply it with the positional values?
frequencies = torch.pow(10000., -torch.arange(0, model_dimension, 2, dtype=torch.float) / model_dimension)