santhoshkolloju / Abstractive-Summarization-With-Transfer-Learning

Abstractive summarisation using Bert as encoder and Transformer Decoder
406 stars 98 forks source link

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

Open Shanzaay opened 4 years ago

Shanzaay commented 4 years ago

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 commented 4 years ago

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?