(self)
| 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) |