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

Make TensorShapeVector to use InlinedVector<Int64_t> to reduce on template instantiations #18519

Merged
merged 4 commits into from
Nov 21, 2023

Conversation

yuslepukhin
Copy link
Member

@yuslepukhin yuslepukhin commented Nov 20, 2023

Description

Use InlinedVector instead of <int64_t,5> to reduce on the number of template instantiations.

Motivation and Context

The reported size reduction is small, just a few Ks. Just trying it out.

@pranavsharma
Copy link
Contributor

Typo in the title: instantiations.

@yuslepukhin yuslepukhin changed the title Make TensorShapeVector to use InlinedVector<Int64_t> to reduce on template instantioations Make TensorShapeVector to use InlinedVector<Int64_t> to reduce on template instantiations Nov 21, 2023
@yuslepukhin yuslepukhin marked this pull request as ready for review November 21, 2023 22:13
@yuslepukhin yuslepukhin merged commit 81a763a into main Nov 21, 2023
143 of 149 checks passed
@yuslepukhin yuslepukhin deleted the yuslepukhin/tensor_shape_vector branch November 21, 2023 22:13
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
…plate instantiations (microsoft#18519)

### Description
Use InlinedVector<int64> instead of <int64_t,5> to reduce on the number
of template instantiations.

### Motivation and Context
The reported size reduction is small, just a few Ks. Just trying it out.
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.

2 participants