Closed f-hy closed 5 months ago
In cached sin and cos the first dimension is the sequence length. So it should be cos_cached[:x.shape[0]]
In cached sin and cos the first dimension is the sequence length. So it should be
cos_cached[:x.shape[0]]
That's right. I think the fix should be like this: #249
fix the following error:
the reason is that the dimensions of two multiplied vectors do not match.