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

Replace flatten with ravel to avoid unnecessary time cost of data copy #376

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jokerz0624
Copy link

When using shared memory mode, it's unnecessary to have a copy of input data by 'numpy. flatten()' .
'numpy. ravel()' is enough because then we just 'std::memcpy' it instead of modifying it.

@jokerz0624
Copy link
Author

@matthewkotila anyone here to review this change?

@tgerdesnv
Copy link
Collaborator

@jbkyang-nvi

@jbkyang-nvi
Copy link
Contributor

Did you file a CLA with respect to https://github.com/triton-inference-server/server/blob/main/CONTRIBUTING.md? It looks fine to me

Copy link
Contributor

@GuanLuo GuanLuo left a comment

Choose a reason for hiding this comment

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

LGTM. @jbkyang-nvi can you kick off a CI containing the change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants