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

Method _npRelu6

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

Source from the content-addressed store, hash-verified

240class Relu6Test(test.TestCase):
241
242 def _npRelu6(self, np_features):
243 sixes = np.copy(np_features)
244 sixes.fill(6.0)
245 return np.minimum(
246 np.maximum(np_features, np.zeros(np_features.shape)), sixes)
247
248 def testNpRelu6(self):
249 self.assertAllClose(

Callers 2

testNpRelu6Method · 0.95
_testRelu6Method · 0.95

Calls 4

fillMethod · 0.80
minimumMethod · 0.80
maximumMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected