Skip to content

Neural Monkey should throw Exception when tf.Saver.restore fails #821

@varisd

Description

@varisd

Try-catch block at
https://github.com/ufal/neuralmonkey/blob/master/neuralmonkey/learning_utils.py#L250

Print a warning, when tf.Saver.restore while ignoring the caught exception. This leads to a confusing behavior where user might think that the variables present in the checkpoint were correctly loaded. This is not true, since the variable loading is halted when the exception is thrown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions