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

Method __exit__

caffe2/python/session.py:171–173  ·  view source on GitHub ↗
(self, ex_type, value, traceback)

Source from the content-addressed store, hash-verified

169 return self
170
171 def __exit__(self, ex_type, value, traceback):
172 if ex_type is None:
173 self.close()
174
175
176class LocalSession(Session):

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected