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

Replacing vector with InlineVector in TensorDescriptor #3502

Draft
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

novakovicdj
Copy link
Contributor

This PR is replacing std::vector with InlineVector in TensorDescriptor for lens/strides. InlineVector #3419

I did some performance testing to compare InlineVector with std::vector(initialization, elements access etc). The results are that InlineVector is ~6% faster than std::vector. For example initialization with 5 elements for InlineVector takes around 20.25ns, and initialization with 5 elements for std::vector takes around 21.85ns.

Based on these results I made changes in the code. I tried to make only necessary changes and to reduce overhead as much as possible (especially in the src/), also some changes needed to be made in InlineVector itself to be able to complete this change.

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.

1 participant