Expected input batch_size (1664) to match target batch_size (13).
时间: 2023-11-17 12:06:53 浏览: 142
pytorch dataloader 取batch_size时候出现bug的解决方式
This error message indicates that there is a mismatch between the batch size of the input data and the target data. In this specific case, the input batch size is 1664 while the target batch size is 13. Both the input and target data should have the same batch size.
To resolve this issue, you can adjust the batch size in your code to ensure that it matches between the input and target data. Alternatively, you can preprocess the data to ensure that both the input and target data have the same batch size.
阅读全文