where x has size of (4, 499, 128). 4 items in the batch, 499 is the sequence length and 128 features.
However, I get the error:
File "/home/shamoon/.local/share/virtualenvs/speech-reconstruction-7HMT9fTW/lib/python3.8/site-packages/tst/multiHeadAttention.py", line 206, in forward
queries = torch.cat(torch.cat(self._W_q(query).chunk(self._h, dim=-1), dim=0).chunk(n_chunk, dim=1), dim=0)
RuntimeError: Sizes of tensors must match except in dimension 1. Got 249 and 250 (The offending index is 0)
I have:
where
x
hassize
of(4, 499, 128)
. 4 items in the batch, 499 is the sequence length and 128 features.However, I get the error: