How to solve RuntimeError: shape '[26, 26]' is invalid for input of size 6760

Ask Questions Forum: ask Machine Learning Questions to our readersCategory: PyTorchHow to solve RuntimeError: shape '[26, 26]' is invalid for input of size 6760
Chris Staff asked 3 weeks ago
1 Answers
Best Answer
Chris Staff answered 3 weeks ago

6760/(26*26) equals 10. Likely, you are passing your entire list with 10 samples to your model. Check if you are only passing one sample rather than all of them at the line your stack trace suggests the error to eb at.

Your Answer

18 + 20 =