MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / testNumbersGPU

Method testNumbersGPU

tensorflow/python/kernel_tests/relu_op_test.py:268–273  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_testRelu6Method · 0.95

Tested by

no test coverage detected