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

Small speed optimizations #2975

Merged
merged 4 commits into from
Oct 30, 2022
Merged

Small speed optimizations #2975

merged 4 commits into from
Oct 30, 2022

Conversation

alanakbik
Copy link
Collaborator

@alanakbik alanakbik commented Oct 29, 2022

Small code optimizations: list comprehensions, remove torch.cat calls. Especially the latter leads to significant improvements in runtime if only using a single embedding.

Reduces training time in my training script from 10,643 to 8,248 ms.

@alanakbik alanakbik merged commit 56ac673 into master Oct 30, 2022
@alanakbik alanakbik deleted the profiler-optimizations branch October 30, 2022 06:17
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