-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize speed and gpu usage for embed
torch.cat needs double the memory since it persists original tensors as well as newly created concatenated tensors.
- Loading branch information
1 parent
e2c48f0
commit 37a7056
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters