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

Method testRank

tensorflow/compiler/tests/eager_test.py:253–261  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

251 constant_op.constant([[1.0, 2.0], [3.0, 4.0]])).numpy())
252
253 def testRank(self):
254 with self.test_scope():
255 self.assertEqual(
256 0, array_ops.rank(constant_op.constant(1.0)).numpy())
257 self.assertEqual(
258 1, array_ops.rank(constant_op.constant([1.0, 2.0, 3.0])).numpy())
259 self.assertEqual(
260 2, array_ops.rank(
261 constant_op.constant([[1.0, 2.0], [3.0, 4.0]])).numpy())
262
263 def testAdam(self):
264 with self.test_scope():

Callers

nothing calls this directly

Calls 4

test_scopeMethod · 0.45
numpyMethod · 0.45
rankMethod · 0.45
constantMethod · 0.45

Tested by

no test coverage detected