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

Function _get_saver

tensorflow/contrib/learn/python/learn/graph_actions.py:420–426  ·  view source on GitHub ↗

Lazy init and return saver.

()

Source from the content-addressed store, hash-verified

418
419
420def _get_saver():
421 """Lazy init and return saver."""
422 saver = _get_first_op_from_collection(ops.GraphKeys.SAVERS)
423 if saver is None and variables.global_variables():
424 saver = tf_saver.Saver()
425 ops.add_to_collection(ops.GraphKeys.SAVERS, saver)
426 return saver
427
428
429def _get_ready_op():

Callers 1

evaluateFunction · 0.70

Calls 3

add_to_collectionMethod · 0.80
global_variablesMethod · 0.45

Tested by

no test coverage detected