Skip to content
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

Add first-class check for nested datanodes in math/arithmetic ops. #5466

Merged
merged 1 commit into from
May 15, 2024

Conversation

mzient
Copy link
Contributor

@mzient mzient commented May 13, 2024

Category:

Other Improved error message

Description:

Prior to this change, passing a list/tuple of DataNodes to a dali.math function or an arithmetic operator resulted in strange errors being produced. This PR adds a first-class check for collections of DataNodes and suggests a possible source of error.

Additional information:

Affected modules and functionalities:

Key points relevant for the review:

Tests:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: DALI-2617

Signed-off-by: Michal Zientkiewicz <michalz@nvidia.com>
dali/test/python/operator_1/test_arithmetic_ops.py Dismissed Show dismissed Hide dismissed
dali/test/python/operator_1/test_arithmetic_ops.py Dismissed Show dismissed Hide dismissed
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [14973916]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [14973916]: BUILD PASSED

@mzient mzient merged commit 17458b7 into NVIDIA:main May 15, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants