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

Method testMatMulGPU

tensorflow/python/eager/ops_test.py:53–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51
52 @test_util.run_gpu_only
53 def testMatMulGPU(self):
54 three = constant_op.constant([[3.]]).gpu()
55 five = constant_op.constant([[5.]]).gpu()
56 product = math_ops.matmul(three, five)
57 self.assertEqual([[15.0]], product.numpy())
58
59 def testExecuteStringAttr(self):
60 three = constant_op.constant(3.0)

Callers

nothing calls this directly

Calls 4

gpuMethod · 0.45
constantMethod · 0.45
matmulMethod · 0.45
numpyMethod · 0.45

Tested by

no test coverage detected