(self)
| 534 | |
| 535 | @test_util.run_deprecated_v1 |
| 536 | def testNoOutputs(self): |
| 537 | op1 = test_ops.float_output(name="myop1").op |
| 538 | float_t, = op1.values() |
| 539 | op2 = test_ops.float_input(float_t, name="myop2") |
| 540 | self.assertEqual(0, len(op2.values())) |
| 541 | self.assertEqual(1, len(op2.inputs)) |
| 542 | self.assertIs(float_t, op2.inputs[0]) |
| 543 | |
| 544 | self.assertEqual(1, len(float_t.consumers())) |
| 545 | self.assertEqual(op2, float_t.consumers()[0]) |
| 546 | |
| 547 | self.assertProtoEquals("op:'FloatOutput' name:'myop1'", op1.node_def) |
| 548 | self.assertProtoEquals("op:'FloatInput' name:'myop2' input:'myop1'", |
| 549 | op2.node_def) |
| 550 | |
| 551 | @test_util.run_deprecated_v1 |
| 552 | def testInputsAndOutputs(self): |
nothing calls this directly
no test coverage detected