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

Method testTop2

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

Source from the content-addressed store, hash-verified

98 self._validateTopK(inputs, 1, [[0.4], [0.3]], [[3], [1]])
99
100 def testTop2(self):
101 inputs = [[0.1, 0.3, 0.2, 0.4], [0.1, 0.3, 0.4, 0.2]]
102 self._validateTopK(inputs, 2, [[0.4, 0.3], [0.4, 0.3]], [[3, 1], [2, 1]])
103
104 def testTop3(self):
105 k = 5

Callers

nothing calls this directly

Calls 1

_validateTopKMethod · 0.95

Tested by

no test coverage detected