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

Coverity fixes: fix fn.normalize crash on batch of empty samples, fix broken assertion in copy_with_stride #5223

Merged
merged 3 commits into from
Dec 7, 2023

Conversation

stiepan
Copy link
Member

@stiepan stiepan commented Dec 5, 2023

Category:

Bug fix (non-breaking change which fixes an issue)

Description:

  • Fixes division by zero issue in GPU fn.normalize when run inferring the block size for a batch of empty tensors.
  • Fixes broken assertion in copy_with_strides for dl python function

Additional information:

Affected modules and functionalities:

Key points relevant for the review:

Tests:

  • Existing tests apply (test_dltensor_operator.test_pytorch in debug build for copy_with_strides fix)
  • New tests added
    • Python tests (test_normalize.test_batch_of_empty_samples)
    • 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-3715

…tensor copy kernel)

Signed-off-by: Kamil Tokarski <ktokarski@nvidia.com>
Signed-off-by: Kamil Tokarski <ktokarski@nvidia.com>
Signed-off-by: Kamil Tokarski <ktokarski@nvidia.com>
@stiepan stiepan marked this pull request as ready for review December 5, 2023 17:23
@stiepan
Copy link
Member Author

stiepan commented Dec 5, 2023

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [11262172]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [11262172]: BUILD PASSED

@stiepan stiepan merged commit 3b53d18 into NVIDIA:main Dec 7, 2023
5 checks passed
AtomicVar pushed a commit to AtomicVar/DALI that referenced this pull request Dec 7, 2023
…fix broken assertion in copy_with_stride (NVIDIA#5223)

* Fix GPU fn.normalize crash on batch of empty samples
* Fix broken assertion in copy with stride (fn.python_function strided tensor copy kernel)
---------

Signed-off-by: Kamil Tokarski <ktokarski@nvidia.com>
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