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

Method test_has_helper

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

Source from the content-addressed store, hash-verified

153 brew.Register(myhelper)
154
155 def test_has_helper(self):
156 self.assertTrue(brew.has_helper(brew.conv))
157 self.assertTrue(brew.has_helper("conv"))
158
159 def myhelper3():
160 pass
161
162 self.assertFalse(brew.has_helper(myhelper3))
163
164 def test_model_helper(self):
165 X = np.random.rand(64, 32, 32, 3).astype(np.float32) - 0.5

Callers

nothing calls this directly

Calls 1

has_helperMethod · 0.80

Tested by

no test coverage detected