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

Assign requires shapes of both tensors to match. lhs shape= [1] rhs shape= [13] [[node save/Assign_201 (defined at /usr/local/lib/python3.5/dist-packages/bert_base-0.0.9-py3.5.egg/bert_base/server/graph.py:291) ]] #381

Open
dolphin-Jia opened this issue Apr 26, 2021 · 0 comments

Comments

@dolphin-Jia
Copy link

用了自己的英文NER数据集,删除了crf的tanh激活函数,开启服务就报错如上

@dolphin-Jia dolphin-Jia changed the title Restoring from checkpoint failed. This is most likely due to a mismatch between the current graph and the graph from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error: Assign requires shapes of both tensors to match. lhs shape= [1] rhs shape= [13] [[node save/Assign_201 (defined at /usr/local/lib/python3.5/dist-packages/bert_base-0.0.9-py3.5.egg/bert_base/server/graph.py:291) ]] Apr 26, 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