MCPcopy Create free account
hub / github.com/pytorch/pytorch / test_double_register

Method test_double_register

caffe2/python/brew_test.py:150–153  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

148 self.assertEqual(res, 15)
149
150 def test_double_register(self):
151 myhelper = self.myhelper
152 with self.assertRaises(AttributeError):
153 brew.Register(myhelper)
154
155 def test_has_helper(self):
156 self.assertTrue(brew.has_helper(brew.conv))

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.80
RegisterMethod · 0.45

Tested by

no test coverage detected