MCPcopy Create free account
hub / github.com/pytorch/pytorch / __exit__

Method __exit__

caffe2/python/net_builder.py:519–522  ·  view source on GitHub ↗
(self, etype, *args)

Source from the content-addressed store, hash-verified

517 NetBuilder.__init__(self, name)
518
519 def __exit__(self, etype, *args):
520 if etype is None and self._stop_blob is not None:
521 ops.stop()
522 NetBuilder.__exit__(self, etype, *args)
523
524
525class _StopGuard(_RunOnce):

Callers

nothing calls this directly

Calls 2

stopMethod · 0.45
__exit__Method · 0.45

Tested by

no test coverage detected