-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for filtering to the ShardedBatchSampler (#1950)
The algorithm is described in more detail in the comments. When there is a filter and randomness is requested then we will do our best to attempt randomness but the resulting sequence will not be perfectly randomized.
- Loading branch information
1 parent
5100222
commit ca53b7c
Showing
2 changed files
with
173 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters