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

Method testTensorK

tensorflow/python/kernel_tests/topk_op_test.py:184–187  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

182 self._validateTopK(inputs, 3, [19, 18, 17], [11, 3, 7])
183
184 def testTensorK(self):
185 inputs = [3, 6, 15, 18, 6, 12, 1, 17, 3, 0, 4, 19, 1, 6]
186 k = constant_op.constant(3)
187 self._validateTopK(inputs, k, [19, 18, 17], [11, 3, 7])
188
189 def testTop3ZeroRows(self):
190 inputs = np.zeros([0, 10], dtype=np.float32)

Callers

nothing calls this directly

Calls 2

_validateTopKMethod · 0.95
constantMethod · 0.45

Tested by

no test coverage detected