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

Method testReduceAllDims

tensorflow/python/ops/math_ops_test.py:43–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41
42 @test_util.run_in_graph_and_eager_modes
43 def testReduceAllDims(self):
44 x = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.int32)
45 with test_util.device(use_gpu=True):
46 y_tf = self.evaluate(math_ops.reduce_sum(x))
47 self.assertEqual(y_tf, 21)
48
49 def testReduceExtendType(self):
50 in_f32 = np.random.randn(1000, 1000).astype(np.float32)

Callers

nothing calls this directly

Calls 3

reduce_sumMethod · 0.80
deviceMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected