forked from lucidrains/x-transformers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Customizable Embedder and Logit Mapper (lucidrains#288)
* Allow kwargs in TokenEmbedding's forward method * Move weight init to embedder class * Allow custom logits mappers * Add unit tests for embedder and logits mapper * Revert "Allow custom logits mappers" This reverts commit e8166b4. * Use kwargs for token_emb and to_logits * Revert to version from main * Add tests for custom token_emb and to_logits * Undo accidental deletion of **kwargs * Simplify test_to_logits * Remove unused import
- Loading branch information
1 parent
7e15c09
commit 409ba0f
Showing
2 changed files
with
100 additions
and
11 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
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