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

Method _testRelu6

tensorflow/python/kernel_tests/relu_op_test.py:255–259  ·  view source on GitHub ↗
(self, np_features)

Source from the content-addressed store, hash-verified

253 0.9]])))
254
255 def _testRelu6(self, np_features):
256 np_relu6 = self._npRelu6(np_features)
257 tf_relu6 = nn_ops.relu6(np_features)
258 self.assertAllClose(np_relu6, tf_relu6)
259 self.assertShapeEqual(np_relu6, tf_relu6)
260
261 def testNumbersCPU(self):
262 for t in [np.int32, np.int64, np.float16, np.float32, np.float64]:

Callers 2

testNumbersCPUMethod · 0.95
testNumbersGPUMethod · 0.95

Calls 4

_npRelu6Method · 0.95
relu6Method · 0.80
assertShapeEqualMethod · 0.80
assertAllCloseMethod · 0.45

Tested by

no test coverage detected