Skip to content
Discussion options

You must be logged in to vote

Yes, that is correct. In theory, it's better to use drop_last=True (since the examples in the last batch will have more impact on the loss). However, I doubt that this leads to any differences in practice. At least I've never made bad experience when not dropping the last batch. Furthermore, I don't this this is very common to see in any PyTorch projects.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LuisaWerner
Comment options

Answer selected by LuisaWerner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants