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

Support vector alike output for OpSpec::TryGetRepeatedArgument #3851

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

prak-nv
Copy link
Contributor

@prak-nv prak-nv commented Apr 26, 2022

Category:

Refactoring (Redesign of existing code that doesn't affect functionality)

Description:

Adds support for output argument to any type with vector interface to OpSpec::TryGetRepeatedArgument.
It is used with SmallVector in few cases, but required copy for std::vector.

Additional information:

Affected modules and functionalities:

Key points relevant for the review:

Checklist

Tests

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

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

@prak-nv prak-nv changed the title Support SmallVector's for OpSpec::TryGetRepeatedArgument Support vector alike output for OpSpec::TryGetRepeatedArgument Jun 6, 2022
@prak-nv
Copy link
Contributor Author

prak-nv commented Jun 7, 2022

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [5033446]: BUILD STARTED

};

template <typename T, typename V1, typename V2>
inline void copy_vector_impl(V1 &out, const V2 &in);
Copy link
Member

Choose a reason for hiding this comment

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

nitpick/question: why not simply define the copy_vector_impl here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Artifact of previous version. It can even be inlined now. Will do thanks.

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [5033446]: BUILD PASSED

@prak-nv
Copy link
Contributor Author

prak-nv commented Jun 8, 2022

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [5041790]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [5041790]: BUILD FAILED

Signed-off-by: Piotr Rak <prak@nvidia.com>
@prak-nv
Copy link
Contributor Author

prak-nv commented Jun 8, 2022

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [5042247]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [5042247]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [5042247]: BUILD PASSED

@prak-nv prak-nv requested a review from stiepan June 13, 2022 13:46
@prak-nv prak-nv merged commit 146a247 into NVIDIA:main Jun 13, 2022
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

5 participants