MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / __exit__

Method __exit__

utils/engine/engine.py:185–189  ·  view source on GitHub ↗
(self, type, value, tb)

Source from the content-addressed store, hash-verified

183 return self
184
185 def __exit__(self, type, value, tb):
186 torch.cuda.empty_cache()
187 if type is not None:
188 logger.warning("A exception occurred during Engine initialization, give up running process")
189 return False

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected