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

Method testDefaultCurrent

caffe2/python/context_test.py:55–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 self.assertIsNone(MyContext.current(required=False))
54
55 def testDefaultCurrent(self):
56 self.assertIsInstance(DefaultMyContext.current(), DefaultMyContext)
57
58 def testNestedContexts(self):
59 with MyContext() as ctx1:

Callers

nothing calls this directly

Calls 1

currentMethod · 0.80

Tested by

no test coverage detected