Allow passing tensor arguments in reader constructors#6252
Allow passing tensor arguments in reader constructors#6252rostan-t wants to merge 22 commits intoNVIDIA:mainfrom
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Greptile SummaryThis PR extends DALI's dynamic mode reader API to allow Key changes:
Confidence Score: 5/5Safe to merge — all previously identified correctness issues have been resolved; only a minor dead-code assignment remains. All P0/P1 concerns from prior review rounds have been addressed. The remaining finding is a P2 dead-code assignment ( No files require special attention; Important Files Changed
|
ed9a066 to
c498545
Compare
|
!build |
|
CI MESSAGE: [45875629]: BUILD STARTED |
|
CI MESSAGE: [45875629]: BUILD FAILED |
mzient
left a comment
There was a problem hiding this comment.
To change:
- make a copy tensor arguments
- do not promote non-tensor arguments to tensors
- simplify caller_depth logic
51fb904 to
f283da0
Compare
@greptileai This is not necessary. Readers are now the only operators publicly exposed as classes. |
|
That makes sense - if readers are the only operators exposed as classes, then the change is already naturally scoped correctly. Thanks for the clarification! |
|
!build |
|
CI MESSAGE: [46240320]: BUILD STARTED |
|
CI MESSAGE: [46240320]: BUILD PASSED |
|
CI MESSAGE: [46459031]: BUILD STARTED |
|
CI MESSAGE: [46459031]: BUILD FAILED |
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
… traces Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
…essing Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
…al tensors Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
… _process_tensor_args Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
PR NVIDIA#6262 fixes the caller depth properly. Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
Signed-off-by: Rostan Tabet <rtabet@nvidia.com>
da6080c to
0a640ea
Compare
|
!build |
|
CI MESSAGE: [46597957]: BUILD STARTED |
|
CI MESSAGE: [46597957]: BUILD PASSED |
Category:
New feature (non-breaking change which adds functionality)
Description:
Currently, it is necessary to invoke readers in order to pass tensor arguments. The recommended way to use readers is with
next_epochand the__call__API is not even documented.This PR allows constructing readers with tensor arguments.
Additional information:
Affected modules and functionalities:
Dynamic mode.
Key points relevant for the review:
Tests:
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: DALI-4600