Closed HeoYoon closed 5 years ago
I don't think I have seen this error before, but it might be due to the tensors coming into the average pool layer being incorrect.
Can you add print(embedded.shape)
before the pooled = F.avg_pool2d(embedded, (embedded.shape[1], 1)).squeeze(1)
line and make sure the tensor is the correct size? It should be [batch size, sentence length, embedding dim].
Thank you!!!!!!! I sovled it^^
Hi, I'm new to pytorch. I followed your code and tried to make Korean version sentiment analysis. But, I got this error.
RuntimeError Traceback (most recent call last)