[WIP][DataPipe] Add RandomSplitter (with buffer)#723
Closed
NivekT wants to merge 1 commit intogh/NivekT/85/basefrom
Closed
[WIP][DataPipe] Add RandomSplitter (with buffer)#723NivekT wants to merge 1 commit intogh/NivekT/85/basefrom
NivekT wants to merge 1 commit intogh/NivekT/85/basefrom
Conversation
[ghstack-poisoned]
Contributor
Author
|
@ejguan @VitalyFedyunin This is WIP, we should discuss this but let me know if there is any initial reaction on how we would like to do |
NivekT
added a commit
that referenced
this pull request
Aug 10, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). TODO: * Decide if we like this or the buffer version better. Or we can add both. * Determines if the API related to randomness needs further extension (we might need to add set_seed) * More tests. See #712 for related discussion. See #723 for the version with buffer. [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 10, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). TODO: * Decide if we like this or the buffer version better. Or we can add both. * Determines if the API related to randomness needs further extension (we might need to add set_seed) * More tests. Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. See #712 for related discussion. See #723 for the version with buffer. [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 12, 2022
…t buffer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). TODO: * Decide if we like this or the buffer version better. Or we can add both. * Determines if the API related to randomness needs further extension (we might need to add set_seed) * More tests. Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. See #712 for related discussion. See #723 for the version with buffer. [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 12, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). TODO: * Decide if we like this or the buffer version better. Or we can add both. * Determines if the API related to randomness needs further extension (we might need to add set_seed) * More tests. Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. See #712 for related discussion. See #723 for the version with buffer. [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 12, 2022
…fer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 12, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. [ghstack-poisoned]
Contributor
Author
|
Closing this PR for now since we are moving forward with the buffer-less version. We can re-visit this if there is a need for it. |
NivekT
added a commit
that referenced
this pull request
Aug 12, 2022
…fer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 12, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 12, 2022
…fer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 12, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 15, 2022
…fer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 15, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 15, 2022
…fer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 15, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 16, 2022
…fer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 16, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 17, 2022
…fer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 17, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 17, 2022
…fer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 17, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 17, 2022
…fer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 17, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 25, 2022
…fer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 25, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 25, 2022
…fer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 25, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 25, 2022
…fer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 25, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 25, 2022
…fer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 25, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 29, 2022
…fer)" This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
NivekT
added a commit
that referenced
this pull request
Aug 29, 2022
This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Differential Revision: [D38675266](https://our.internmc.facebook.com/intern/diff/D38675266) [ghstack-poisoned]
facebook-github-bot
pushed a commit
that referenced
this pull request
Aug 29, 2022
Summary: Pull Request resolved: #724 This PR adds RandomSplitter without a buffer. The upside is that this uses less memory (good for memory-bound cases) but the downside are 1) only one group can be iterated through at a time and 2) it skips over all the groups that do not match the target (which is potentially wasteful). Implementation note: * I decided against reusing `_ChildDataPipe` since its features are overly complicated for this use case. * I also decided against having an option to change seed automatically after each iteration, because there are situations where the first iteration is for `test` and the second iteration is for `valid`. Changing seed will be confusing and causes inconsistency. See #712 for related discussion. See #723 for the version with buffer. Test Plan: Imported from OSS Reviewed By: VitalyFedyunin Differential Revision: D38675266 Pulled By: NivekT fbshipit-source-id: 137ea860367aab9b02fd1645bf7cc0429ab1f018
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack:
This PR adds RandomSplitter with an implementation that uses a buffer through
demux, thus allowing all child DataPipes to be used simultaneously. This may not work for the memory-bound cases.TODO:
set_seed)See #712 for related discussion.
See #724 for the version WITHOUT buffer.