(self, saver)
| 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.") |
nothing calls this directly
no test coverage detected