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

Method testTop1

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

Source from the content-addressed store, hash-verified

94 self.assertAllClose(np.sort(np_expected_values), np.sort(values))
95
96 def testTop1(self):
97 inputs = [[0.1, 0.3, 0.2, 0.4], [0.1, 0.3, 0.3, 0.2]]
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]]

Callers

nothing calls this directly

Calls 1

_validateTopKMethod · 0.95

Tested by

no test coverage detected