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

Method testNpRelu6

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

Source from the content-addressed store, hash-verified

246 np.maximum(np_features, np.zeros(np_features.shape)), sixes)
247
248 def testNpRelu6(self):
249 self.assertAllClose(
250 np.array([[0.0, 0.7, 0.0, 0.3, 6.0], [0.1, 0.0, 6.0, 0.0, 0.9]]),
251 self._npRelu6(
252 np.array([[-0.9, 0.7, -0.5, 0.3, 6.0], [0.1, -0.3, 6.5, -0.7,
253 0.9]])))
254
255 def _testRelu6(self, np_features):
256 np_relu6 = self._npRelu6(np_features)

Callers

nothing calls this directly

Calls 2

_npRelu6Method · 0.95
assertAllCloseMethod · 0.45

Tested by

no test coverage detected