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

Method testTopAll

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

Source from the content-addressed store, hash-verified

166 self._validateTopK(inputs, k, values, indices)
167
168 def testTopAll(self):
169 inputs = [[0.1, 0.3, 0.2, 0.4], [0.1, 0.3, 0.3, 0.2]]
170 self._validateTopK(inputs, 4, [[0.4, 0.3, 0.2, 0.1], [0.3, 0.3, 0.2, 0.1]],
171 [[3, 1, 2, 0], [1, 2, 3, 0]])
172
173 def testTop3Unsorted(self):
174 inputs = [[0.1, 0.3, 0.2, 0.4], [0.1, 0.4, 0.3, 0.2]]

Callers

nothing calls this directly

Calls 1

_validateTopKMethod · 0.95

Tested by

no test coverage detected