Skip to content

Instantly share code, notes, and snippets.

@wobu
Created July 12, 2016 10:47
Show Gist options
  • Save wobu/909ec87bbe79f7a3ef41869601d0af34 to your computer and use it in GitHub Desktop.
Save wobu/909ec87bbe79f7a3ef41869601d0af34 to your computer and use it in GitHub Desktop.
Bidirectional save weights error
File "encoder_sentences_softmax.py", line 374, in <module>
save_model(model)
File "encoder_sentences_softmax.py", line 92, in save_model
nn_model.save_weights(MODEL_PATH, overwrite=True)
File "C:\Anaconda2\envs\firstaid\lib\site-packages\keras\engine\topology.py", line 2332, in save_weights
dtype=val.dtype)
File "C:\Anaconda2\envs\firstaid\lib\site-packages\h5py\_hl\group.py", line 108, in create_dataset
self[name] = dset
File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (C:\Minonda\conda-bld\work\h5py\_objects.c:2696)
File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (C:\Minonda\conda-bld\work\h5py\_objects.c:2654)
File "C:\Anaconda2\envs\firstaid\lib\site-packages\h5py\_hl\group.py", line 277, in __setitem__
h5o.link(obj.id, self.id, name, lcpl=lcpl, lapl=self._lapl)
File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (C:\Minonda\conda-bld\work\h5py\_objects.c:2696)
File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (C:\Minonda\conda-bld\work\h5py\_objects.c:2654)
File "h5py\h5o.pyx", line 202, in h5py.h5o.link (C:\Minonda\conda-bld\work\h5py\h5o.c:3610)
RuntimeError: Unable to create link (Name already exists)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment