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 axes_utils.h #4548

Merged
merged 1 commit into from
Jan 9, 2023
Merged

Add axes_utils.h #4548

merged 1 commit into from
Jan 9, 2023

Conversation

jantonguirao
Copy link
Contributor

@jantonguirao jantonguirao commented Jan 5, 2023

Signed-off-by: Joaquin Anton janton@nvidia.com

Category:

Refactoring

Description:

  • Extracting CheckAxes and AdjustAxes to common kernel utilities (to be reused in tensor resize)

Additional information:

Affected modules and functionalities:

Reduction kernels

Key points relevant for the review:

NA

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: N/A

@jantonguirao
Copy link
Contributor Author

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6938122]: BUILD STARTED

@jantonguirao
Copy link
Contributor Author

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6938365]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6938365]: BUILD FAILED

@jantonguirao
Copy link
Contributor Author

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6938577]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6938577]: BUILD FAILED

@jantonguirao
Copy link
Contributor Author

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6939042]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6939042]: BUILD FAILED

@jantonguirao
Copy link
Contributor Author

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6939418]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6939418]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6939418]: BUILD PASSED

@jantonguirao jantonguirao force-pushed the axes_utils branch 3 times, most recently from a34b34c to 9e0dce3 Compare January 9, 2023 13:51
Comment on lines -247 to -248
reduce_impl::CheckAxes(make_cspan(axes), ndim());
reduce_impl::AdjustAxes(make_span(axes), ndim());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Already checked at the operator level (and it's where it should be done)

@@ -408,11 +408,8 @@ class ReduceImplGPU {
if (in_shape.sample_dim() > 64)
throw std::range_error("Reduce supports up to 64 dimensions");
reduce_batch_ = reduce_batch;
int ndim = in_shape.sample_dim();
CheckAxes(axes_arg, ndim);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Already checked at the operator level (and it's where it should be done)

@jantonguirao jantonguirao changed the title Move CheckAxes to utils.h Create axes_utils.h Jan 9, 2023
@jantonguirao jantonguirao changed the title Create axes_utils.h Add axes_utils.h Jan 9, 2023
@jantonguirao
Copy link
Contributor Author

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6967378]: BUILD STARTED

Signed-off-by: Joaquin Anton <janton@nvidia.com>
@jantonguirao
Copy link
Contributor Author

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6968361]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6968361]: BUILD PASSED

@jantonguirao jantonguirao merged commit 0f0fea3 into NVIDIA:main Jan 9, 2023
aderylo pushed a commit to zpp-dali-2022/DALI that referenced this pull request Mar 17, 2023
Signed-off-by: Joaquin Anton <janton@nvidia.com>
@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.

4 participants