-
Notifications
You must be signed in to change notification settings - Fork 661
Allow passing tensor arguments in reader constructors #6252
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
Open
rostan-t
wants to merge
22
commits into
NVIDIA:main
Choose a base branch
from
rostan-t:ndd-reader-tensor-args
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
f76b523
Support constructing readers with tensor args
rostan-t 0878b6c
Detect when default values are passed when invoking a reader
rostan-t 553d01c
Fix call stack depth for reader invocations when reconstructing stack…
rostan-t 17bb0b5
Add tests passing tensor arguments
rostan-t a3172ff
Disallow constructing a reader with batch kwargs
rostan-t a8aa74a
Update signature of reader constructors to allow tensor arguments
rostan-t a1fccb3
Update NumpyReader example to pass ROI in the reader constructor
rostan-t cdaefaf
Apply suggestions from review
rostan-t a3a59ea
Prevent processing again tensor args when not necessary in batch proc…
rostan-t ab75701
Fix test_video_resize_tensor_args_partial
rostan-t 4ba75c3
Cache processed tensor args passed in the constructor
rostan-t aee5ab5
Fix caller_depth handling. Remove special case for readers
rostan-t 4785f39
Pass scalar arguments directly to reader constructors and copy extern…
rostan-t a5e6c5e
Set _raw_tensor_args instead of _tensor_args in reader constructor
rostan-t d1f0de9
Fix tensor arg tracking in reader op constructor
rostan-t 09b7dd7
Properly use reader tensor args in TorchData integration
rostan-t e3de140
Fix signature of reader constructors
rostan-t 2137a04
Fix tensor arg handling in reader op constructor
rostan-t ccbe827
Fix typos
rostan-t f2382ac
Copy all tensors passed to constructors and perform only broadcast in…
rostan-t 59aa5c6
Revert the change to the caller depth.
rostan-t 0a640ea
Perform dtype conversion of reader constructor arguments
rostan-t 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
Some comments aren't visible on the classic Files Changed page.
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
79 changes: 65 additions & 14 deletions
79
docs/examples/general/data_loading/numpy_reader/dynamic_mode.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
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.