(self)
| 266 | np.array([[-9, 7, -5, 3, -1], [1, -3, 5, -7, 9]]).astype(t)) |
| 267 | |
| 268 | def testNumbersGPU(self): |
| 269 | if not test.is_gpu_available(): |
| 270 | self.skipTest("No GPU available") |
| 271 | for t in [np.float16, np.float, np.double]: |
| 272 | self._testRelu6( |
| 273 | np.array([[-9, 7, -5, 3, -1], [1, -3, 5, -7, 9]]).astype(t)) |
| 274 | |
| 275 | # The gradient test for ReLU6 is a bit tricky as the derivative is |
| 276 | # not well defined at around zero and six and we want to avoid that |
nothing calls this directly
no test coverage detected