Code
Hub
Trending
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pytorch/pytorch
/ __exit__
Method
__exit__
caffe2/python/net_builder.py:536–540 ·
view source on GitHub ↗
(self, etype, *args)
Source
from the content-addressed store, hash-verified
534
return
r
535
536
def
__exit__(self, etype, *args):
537
if
etype is None:
538
self._ran = True
539
ops.Const(False, blob_out=self._stopped)
540
_RunOnce.__exit__(self, etype, *args)
541
542
def
has_stopped(self):
543
""
"
Callers
nothing calls this directly
Calls
2
Const
Method · 0.80
__exit__
Method · 0.45
Tested by
no test coverage detected