-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix minor mistakes in vocab-embedding extension #2899
Conversation
1. Make sure `num_embeddings` is updated after embedding extension. 2. Actually pass `pretrained_file` from `from_params` to `Embedding` initializer. Don't know why this was missed!
looks fine, if this was secretly broken should we add a test for it? |
@harsh19 I'm merging to unblock cutting a release--but please follow up with a PR with tests. |
@joelgrus sorry, I didn't see the message yesterday and have been busy with something since morning. I will add the tests. |
Making sure @joelgrus any thoughts on what can be done? |
I can think of two obvious options:
|
Well shoot--I meant to merge this but instead I updated the branch and never revisited this so it's not in the last release. From the discussion above perhaps that's a good thing though. |
A combination of both should work though. I can change
|
@joelgrus, @HarshTrivedi, what's the status of this PR? |
@matt-gardner the problem isn't solved yet. This will require some more work. I am planning to get back on this after my internship, which is ending in 2 weeks. Hope that's fine. |
@harsh19 do you still intend to work on this? |
I think you intended to tag @HarshTrivedi |
Oops--sorry. @HarshTrivedi do you still intend to work on this? |
Please comment here if you'd like us to reopen this PR. |
num_embeddings
is updated after embedding extension.pretrained_file
fromfrom_params
toEmbedding
initializer. Don't know why this was missed!