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

euler目前支持导入预训练的embedding向量吗? #331

Open
yxz9087 opened this issue May 7, 2021 · 1 comment
Open

euler目前支持导入预训练的embedding向量吗? #331

yxz9087 opened this issue May 7, 2021 · 1 comment

Comments

@yxz9087
Copy link

yxz9087 commented May 7, 2021

查看了一下源码,想要找到node的embedding table是在哪里定义的,然后用预训练的embedding table替代,但是没有找到。
请问目前euler支持导入预训练的数据吗?

@zhangyuhanjc
Copy link

euler实现的embedding层( tf_euler.utils.layers.Embedding)没有直接实现方便的预加载参数,我觉得可以选择以下两种"曲线救国"
1.直接按层名字找到权重加载
image
2. 我试过可以在euler中穿插使用tf.keras的层, 使用keras的embdding层有参数可以把pretrained_weight直接传入

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

No branches or pull requests

2 participants