ufal / neuralmonkey

An open-source tool for sequence learning in NLP built on TensorFlow.
BSD 3-Clause "New" or "Revised" License
412 stars 103 forks source link

Neural Monkey does not throw exception when main.initial_variables contains nonexistent path. #820

Open varisd opened 5 years ago

varisd commented 5 years ago

When running neuralmonkey-train (and possibly *run) with main.initial_variables set to nonexistent path, Neural Monkey does not throw an exception and continues with execution (probably with randomly initialized variables instead). This does not happen, if the variables directory exists and only the file prefix is incorrect.

e.g.: bin/neuralmonkey-train tests/bpe.ini -s 'main.initial_variables=["some-directory/variables.data"]' (If "some-directory" does not exist, this runs normally even though it should fail.) (If "some-directory" exists and variables.data* is nonexistent, neuralmonkey-train properly trains.)