(err, extra_verbiage)
| 1855 | |
| 1856 | |
| 1857 | def _wrap_restore_error_with_msg(err, extra_verbiage): |
| 1858 | err_msg = ("Restoring from checkpoint failed. This is most likely " |
| 1859 | "due to {} from the checkpoint. Please ensure that you " |
| 1860 | "have not altered the graph expected based on the checkpoint. " |
| 1861 | "Original error:\n\n{}").format(extra_verbiage, err.message) |
| 1862 | return err.__class__(err.node_def, err.op, err_msg) |
| 1863 | |
| 1864 | |
| 1865 | ops.register_proto_function( |