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

Method testMatMulGPU

tensorflow/python/eager/core_test.py:655–664  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

653
654 @test_util.run_gpu_only
655 def testMatMulGPU(self):
656 three = constant_op.constant([[3.]]).gpu()
657 five = constant_op.constant([[5.]]).gpu()
658 product = execute(
659 b'MatMul',
660 num_outputs=1,
661 inputs=[three, five],
662 attrs=('transpose_a', False, 'transpose_b', False, 'T',
663 three.dtype.as_datatype_enum))[0]
664 self.assertAllEqual([[15.0]], product)
665
666 def testExecuteStringAttr(self):
667 checked_three = execute(

Callers

nothing calls this directly

Calls 4

executeFunction · 0.70
gpuMethod · 0.45
constantMethod · 0.45
assertAllEqualMethod · 0.45

Tested by

no test coverage detected