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

Method _Range

tensorflow/python/kernel_tests/init_ops_test.py:461–466  ·  view source on GitHub ↗
(self, start, limit, delta)

Source from the content-addressed store, hash-verified

459class RangeTest(test.TestCase):
460
461 def _Range(self, start, limit, delta):
462 with self.cached_session(use_gpu=True):
463 tf_ans = math_ops.range(start, limit, delta, name="range")
464 self.assertEqual([len(np.arange(start, limit, delta))],
465 tf_ans.get_shape())
466 return self.evaluate(tf_ans)
467
468 def testBasic(self):
469 self.assertTrue(

Callers 4

testBasicMethod · 0.95
testEmptyMethod · 0.95
testNonIntegerMethod · 0.95
testNegativeDeltaMethod · 0.95

Calls 4

cached_sessionMethod · 0.45
rangeMethod · 0.45
get_shapeMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected