I am building the model given in this paper.
I came across a function to reshape one of the input embeddings, however I am not sure how it works.
values = values.reshape(N, value_len, self.heads, self.head_dim)
#Here N, value_len and embed size is the dimension of the tensor "values"
I have tried the official documentation but could not make sense of what this function is exactly doing?