Skip to content
Discussion options

You must be logged in to vote

This is from my understanding of reading the code. We pre-compute batches of mini-batch using generate_batches (resulting in 3D). Then, during __iter__, we iterate over this 3D, returning 2D batches (like BatchSampler are used to). This allows us to pre-compute the batch efficiently.

Replies: 1 comment

Comment options

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