santhoshkolloju / Abstractive-Summarization-With-Transfer-Learning

Abstractive summarisation using Bert as encoder and Transformer Decoder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Shanzaay opened this issue · comments

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.

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?