-
Hi, I'd like to sample my batch according to Poisson sampling, therefore the batch size might result in an indivisible number of local devices to be shard.
Is there a workaround for my case? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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. |
Beta Was this translation helpful? Give feedback.
-
Thanks, seems like padding is the easiest way. |
Beta Was this translation helpful? Give feedback.
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.