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

Method testSimple

tensorflow/python/ops/raw_ops_test.py:37–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35class RawOpsTest(test.TestCase, parameterized.TestCase):
36
37 def testSimple(self):
38 x = constant_op.constant(1)
39 self.assertEqual([2], self.evaluate(gen_math_ops.Add(x=x, y=x)))
40
41 def testRequiresKwargs(self):
42 with self.assertRaisesRegexp(TypeError, "only takes keyword args"):

Callers

nothing calls this directly

Calls 3

constantMethod · 0.45
evaluateMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected