-
Notifications
You must be signed in to change notification settings - Fork 74k
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
use pre-trained embedding with tf.feature_column.embedding_column by initializer #20663
Comments
Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. |
thks for quick response! details below: |
finally I figured out. Although. I'm not clear why answer above is not effective. @angersson if you saw my question, Thanks to give some suggestion to me. ok~~~~here is my solvement. Actually from here
|
Looks like this issue has been resolved, so I'm closing it. Thanks for posting your updates! If you have any more questions that are not bug reports or feature requests, please ask a question on Stack Overflow, which has a wider audience. Thanks! |
You are passing the weights directly to the "embedding_column" layer, but it is expecting callable object. Best way to create an initializer class and pass it to the embedding_column like this
|
I used pre-trained embedding with tf.feature_column.embedding_column by parameter initializer ,my code is blow
code here
it says:
ValueError: initializer must be callable if specified. Embedding of column_name: itemx
then I tried set
lambda w: W
.but it doesn't work and got a typeError: TypeError: () got an unexpected keyword argument 'dtype'
I'm confused is this a bug?
thks fou your guys suggestion!
The text was updated successfully, but these errors were encountered: