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

Method test

tensorflow/examples/adding_an_op/cuda_op_test.py:27–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25class AddOneTest(tf.test.TestCase):
26
27 def test(self):
28 if tf.test.is_built_with_cuda():
29 result = cuda_op.add_one([5, 4, 3, 2, 1])
30 self.assertAllEqual(result, [6, 5, 4, 3, 2])
31
32
33if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

add_oneMethod · 0.45
assertAllEqualMethod · 0.45

Tested by

no test coverage detected