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

Method __init__

tensorflow/contrib/session_bundle/exporter.py:141–150  ·  view source on GitHub ↗
(self, saver)

Source from the content-addressed store, hash-verified

139 """
140
141 def __init__(self, saver):
142 # Makes a copy of the saver-def and disables garbage-collection, since the
143 # exporter enforces garbage-collection independently. Specifically, since
144 # the exporter performs atomic copies of the saver output, it is required
145 # that garbage-collection via the underlying saver be disabled.
146 saver_def = saver.as_saver_def()
147 saver_def.ClearField("max_to_keep")
148 self._saver = tf_saver.Saver(saver_def=saver_def)
149 self._has_init = False
150 self._assets_to_copy = {}
151
152 @deprecated("2017-06-30",
153 "No longer supported. Switch to SavedModel immediately.")

Callers

nothing calls this directly

Calls 1

as_saver_defMethod · 0.80

Tested by

no test coverage detected