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

Extended Embedding configuration and added unit tests #148

Merged
merged 2 commits into from
Jan 26, 2020

Conversation

guillaume-be
Copy link
Contributor

The padding index was set to a value of -1 for all embedding layers created. Being able to configure this value is useful when working with pretrained models. Added this field to the EmbeddingConfig (keeping the default to -1). Added a few unit tests for the embedding layer that were missing.

@LaurentMazare LaurentMazare merged commit ef30d15 into LaurentMazare:master Jan 26, 2020
@LaurentMazare
Copy link
Owner

Thanks for the PR!

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.

None yet

2 participants