Skip to content

Shard non divisible batch size #2914

Closed Answered by cgarciae
long21wt asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @long21wt, when using batch sizes that are not divisible by the number of devices the solution is usually to use form some of padding + masking. Checkout our Processing the entire Datase guide for some pointers.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by long21wt
Comment options

You must be logged in to vote
0 replies
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