(self)
| 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): |
nothing calls this directly
no test coverage detected