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

AssertionError: model name:bert/encoder/layer_0/ffn/intermediate/bias not exists! #38

Open
Shanzaay opened this issue Dec 28, 2019 · 1 comment

Comments

@Shanzaay
Copy link

Shanzaay commented Dec 28, 2019

Hi. While executing the file model.py I am getting the following error on line 109.

AssertionError: model name:bert/encoder/layer_0/ffn/intermediate/bias not exists!

I am stuck here. What should I do to remove this error?
Plus I also add reuse=tf.AUTO_REUSE in tf.variablescope at line 75 to remove the following error:
ValueError: Variable bert/word_embeddings/w already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:
I am telling about this in case it has anything to do with assertionError.
Please help me solve this issue. I am stuck here.

@Shanzaay
Copy link
Author

okay so when I open my spider and run the code for the first time the error don't occur but when I run it again. the error appears. so every time I have to close spider and then open it and use it again. what should I do to solve this problem?

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