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

Method testArgsort

tensorflow/python/ops/sort_ops_test.py:127–133  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125
126 @test_util.run_deprecated_v1
127 def testArgsort(self):
128 arr = np.random.random((5, 6, 7, 8))
129 for axis in range(4):
130 with self.cached_session():
131 self.assertAllEqual(
132 np.argsort(arr, axis=axis),
133 sort_ops.argsort(arr, axis=axis).eval())
134
135
136if __name__ == '__main__':

Callers

nothing calls this directly

Calls 4

rangeFunction · 0.70
cached_sessionMethod · 0.45
assertAllEqualMethod · 0.45
evalMethod · 0.45

Tested by

no test coverage detected