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

Method enter

caffe2/python/context.py:21–22  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

19 return self._local_stack.obj
20
21 def enter(self, value):
22 self._stack.append(value)
23
24 def exit(self, value):
25 assert len(self._stack) > 0, 'Context %s is empty.' % self.cls

Callers 2

get_activeMethod · 0.95
__enter__Method · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected