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

adam_filter后的问题 #388

Open
sly123197811 opened this issue Jun 3, 2021 · 0 comments
Open

adam_filter后的问题 #388

sly123197811 opened this issue Jun 3, 2021 · 0 comments

Comments

@sly123197811
Copy link

sly123197811 commented Jun 3, 2021

模型训练结束后,我使用提供的adam_filter方法,删除一些不必要的参数后,重新加载模型做预测,报以下错误:
tensorflow.python.framework.errors_impl.NotFoundError: Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:
Key project/hidden/W not found in checkpoint

我打印bert和新模型所有参数后,发现并没有project/hidden/W,希望楼主指点一下,万分感谢

@sly123197811 sly123197811 changed the title model_filter后的问题 adam_filter后的问题 Jun 3, 2021
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

1 participant