Skip to content

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