MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _wrap_restore_error_with_msg

Function _wrap_restore_error_with_msg

tensorflow/python/training/saver.py:1857–1862  ·  view source on GitHub ↗
(err, extra_verbiage)

Source from the content-addressed store, hash-verified

1855
1856
1857def _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
1865ops.register_proto_function(

Callers 1

restoreMethod · 0.85

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected