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

Method __exit__

caffe2/python/net_builder.py:576–579  ·  view source on GitHub ↗
(self, type, *args)

Source from the content-addressed store, hash-verified

574 return builder
575
576 def __exit__(self, type, *args):
577 if type is None and self._num_iters is not None:
578 self.current_net().Add([self._iter, self._inc], [self._iter])
579 NetBuilder.__exit__(self, type, *args)
580
581
582class _RunIf(_RunOnce):

Callers 8

__exit__Method · 0.45
__exit__Method · 0.45
__exit__Method · 0.45
__exit__Method · 0.45
__exit__Method · 0.45
__exit__Method · 0.45
__exit__Method · 0.45
__exit__Method · 0.45

Calls 2

current_netMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected