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

use split/squeeze instead of slice for performance #409

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

polisettyvarma
Copy link

@polisettyvarma polisettyvarma commented Jul 2, 2024

GPU may not have perf difference but HPU perf improves with this by 13.8 %

GPU may not have perf difference but HPU perf improves with this
@tjruwase
Copy link

tjruwase commented Jul 8, 2024

@polisettyvarma, can you share some intuition behind this optimization for HPUs?

@tjruwase tjruwase merged commit 330f9f2 into microsoft:main Jul 8, 2024
1 check passed
@polisettyvarma
Copy link
Author

@tjruwase it is mainly due to inplace operations caused by slice

@polisettyvarma polisettyvarma deleted the split_tensor branch July 17, 2024 17:41
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