(self)
| 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 |
nothing calls this directly
no test coverage detected