-
Notifications
You must be signed in to change notification settings - Fork 170
[RFC] Retool for iterator only #1362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+278
−274
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
7699381
inital commit
divyanshk 0886fcc
remove load_state_dict
divyanshk d8c9bab
barebones test for testing
divyanshk e238b32
testing
divyanshk 334a6a5
loop over a single dataset
divyanshk 2afec89
updates behaviour
andrewkho 7a1a3e3
update docstring
andrewkho 86efb63
add global wrapper node, need to think of better name
andrewkho d2f0ea0
add to init
andrewkho 02b4591
Rename to Loader
andrewkho f3d4449
Rename to Loader
andrewkho bdf0244
working example with PR#1358
divyanshk 07becf6
working example with PR#1358
divyanshk 8c51d8f
Merge branch 'main' into divyanshk/multi-dataset-mixer
divyanshk 9652f4a
Increase state_dict test coverage, fix snapshotting bug in mappers
andrewkho 09d0695
Merge branch 'andrewkh/add-global-wrapper-node' into divyanshk/multi-…
andrewkho 55bd285
partial
andrewkho 52ccde2
convert generators to explicit iterators
andrewkho 25db901
Merge branch 'andrewkh/retool-for-iterator-only' into divyanshk/multi…
andrewkho 6cb6d34
convert multi dataset generator to iterator
andrewkho 6948a22
remove print
andrewkho 6bfba97
temp
andrewkho 416ffb9
update pin_memory
andrewkho 72f5718
update map
andrewkho 7b716b2
fix base_node tests
andrewkho e10a00a
update docstring
andrewkho 7b8abad
split up diff into multiple
andrewkho a6cad52
add mypy ignores
andrewkho af610c5
merge main
andrewkho 1fa022f
change test back to forkserver
andrewkho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There might be a more-clever way to handle this, eg through a property or something, that won't make the type-hinters complain. Would prefer to do it in a separate diff as it's currently mostly sugar. Alternatively we can also
assert self._it is not Noneto keep linters happy, but I don't like the idea of adding code to make linters happy