codekansas / keras-language-modeling

:book: Some language modeling tools for Keras
https://codekansas.github.io/language
MIT License
658 stars 171 forks source link

Error saving the model #8

Open akmahaja opened 8 years ago

akmahaja commented 8 years ago

I am using the same code as in the AttentionModel in keras_models.py. I have added the additional Dense Layers in the end. When I try to save the model, it throws the following issue: The code that is throwing this issue is here: fchollet/keras#2659

File "trainer.py", line 48, in create_training_features json_string = explicit_model.to_json() File "/usr/local/lib/python2.7/site-packages/keras/engine/topology.py", line 2368, in to_json config = self.get_config() File "/usr/local/lib/python2.7/site-packages/keras/engine/topology.py", line 2163, in get_config new_node_index = node_conversion_map[node_key] KeyError: 'input1_ib-0'