You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to work well when the batch size (either for training or validation) is a factor of the number of examples, but otherwise I get the following error message: IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)
For example:
with batch_size =4,
3172 samples works, but 3171 or 3173 return an error.
The text was updated successfully, but these errors were encountered:
I did not run into this issue myself, but then again i did not tweak the dataset size or the batch size much. I will run the notebook with these changes at my end and let you know the results.
I faced the same issue. Would be good to have some checking mechanism to round down to the closest multiple that doesn't crash with a warning message explaining that part of the data has been discarded.
It seems to work well when the batch size (either for training or validation) is a factor of the number of examples, but otherwise I get the following error message: IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)
For example: with batch_size =4, 3172 samples works, but 3171 or 3173 return an error.
re: transformers_multiclass_classification.ipynb
Thank you for this helpful tutorial!
It seems to work well when the batch size (either for training or validation) is a factor of the number of examples, but otherwise I get the following error message:
IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)
For example:
with batch_size =4,
3172 samples works, but 3171 or 3173 return an error.
The text was updated successfully, but these errors were encountered: