MCPcopy Index your code
hub / github.com/pytorch/pytorch / __exit__

Method __exit__

caffe2/python/task.py:550–558  ·  view source on GitHub ↗
(self, type, value, traceback)

Source from the content-addressed store, hash-verified

548 return self
549
550 def __exit__(self, type, value, traceback):
551 super().__exit__(type, value, traceback)
552
553 self._net_builder.__exit__(type, value, traceback)
554 if type is None:
555 self.set_step(self._net_builder)
556 if self.group is not None:
557 self.group._tasks_to_add.append(self)
558 self._net_builder = None
559
560 def workspace_type(self):
561 return self._workspace_type

Callers

nothing calls this directly

Calls 2

set_stepMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected