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

Method testExecuteBasic

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

Source from the content-addressed store, hash-verified

599
600 # TODO(agarwal): add tests passing incorrect typed values to attrs.
601 def testExecuteBasic(self):
602 three = constant_op.constant(3)
603 five = constant_op.constant(5)
604 product = execute(
605 b'Mul',
606 num_outputs=1,
607 inputs=[three, five],
608 attrs=('T', three.dtype.as_datatype_enum))[0]
609 self.assertAllEqual(15, product)
610
611 def testExecuteBasicAsync(self):
612 with context.execution_mode(context.ASYNC):

Callers

nothing calls this directly

Calls 3

executeFunction · 0.70
constantMethod · 0.45
assertAllEqualMethod · 0.45

Tested by

no test coverage detected