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

Method testDecorator

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

Source from the content-addressed store, hash-verified

41
42 @MyContext()
43 def testDecorator(self):
44 self.assertIsNotNone(MyContext.current())
45
46 def testNonDefaultCurrent(self):
47 with self.assertRaises(AssertionError):

Callers

nothing calls this directly

Calls 1

currentMethod · 0.80

Tested by

no test coverage detected