MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / __enter__

Method __enter__

tensorpack/tfutils/collection.py:117–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

115 return self._inverse_graphkeys.get(name, name)
116
117 def __enter__(self):
118 self.original = backup_collection()
119 self._freeze_backup = backup_collection(self._freeze_keys)
120
121 def __exit__(self, exc_type, exc_val, exc_tb):
122 if exc_type is not None:

Callers

nothing calls this directly

Calls 1

backup_collectionFunction · 0.85

Tested by

no test coverage detected