(self)
| 105 | self.assertEqual([1, 2, 3], t.get_shape()) |
| 106 | |
| 107 | def testIterable(self): |
| 108 | if not context.executing_eagerly(): |
| 109 | self.skipTest("Eager-mode test") |
| 110 | op = ops.Operation( |
| 111 | ops._NodeDef("FloatOutput", "myop"), ops.Graph(), [], [dtypes.float32]) |
| 112 | t = op.outputs[0] |
| 113 | with self.assertRaisesRegexp(TypeError, "Cannot iterate"): |
| 114 | next(iter(t)) |
| 115 | |
| 116 | def testIterableGraph(self): |
| 117 | if context.executing_eagerly(): |
nothing calls this directly
no test coverage detected