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 CPU filter operator #4764

Merged
merged 2 commits into from
Apr 5, 2023
Merged

Add CPU filter operator #4764

merged 2 commits into from
Apr 5, 2023

Conversation

stiepan
Copy link
Member

@stiepan stiepan commented Apr 3, 2023

Category:

New feature (non-breaking change which adds functionality)

Description:

This PR adds CPU backend to the expermimental.filter operator. The backend simply wraps opencv's filter2d. For this reason, the volumteric data is not supported by the CPU backend, similarily input of int8 and float16 types are not supported.

Both "same" and "valid" modes are supported, the first with all supported border modes.

Additional information:

Due to limitations of OCV, the constant and wrap border modes must have been implemented with extra calls to manually pad the input with proper border.

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: FILTER.01 (FILTER.01-FILTER.04, FILTER.06-FILTER.12)

JIRA TASK: DALI-3263

Signed-off-by: Kamil Tokarski <ktokarski@nvidia.com>
Signed-off-by: Kamil Tokarski <ktokarski@nvidia.com>
@stiepan
Copy link
Member Author

stiepan commented Apr 3, 2023

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [7802021]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [7802021]: BUILD PASSED

Copy link
Collaborator

@banasraf banasraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very verbose args validation error messages 👍

@stiepan stiepan merged commit 7e3cd7c into NVIDIA:main Apr 5, 2023
@JanuszL JanuszL mentioned this pull request Sep 6, 2023
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