(self)
| 97 | class TensorAndShapeTest(test_util.TensorFlowTestCase): |
| 98 | |
| 99 | def testShape(self): |
| 100 | op = ops.Operation( |
| 101 | ops._NodeDef("FloatOutput", "myop"), ops.Graph(), [], [dtypes.float32]) |
| 102 | t = op.outputs[0] |
| 103 | self.assertEqual(tensor_shape.unknown_shape(), t.get_shape()) |
| 104 | t.set_shape([1, 2, 3]) |
| 105 | self.assertEqual([1, 2, 3], t.get_shape()) |
| 106 | |
| 107 | def testIterable(self): |
| 108 | if not context.executing_eagerly(): |
nothing calls this directly
no test coverage detected