(self)
| 428 | self.assertEqual("(4, 5, 2)", str(tensor_shape.TensorShape([4, 5, 2]))) |
| 429 | |
| 430 | def testAsProto(self): |
| 431 | self.assertTrue(tensor_shape.unknown_shape().as_proto().unknown_rank) |
| 432 | self.assertFalse( |
| 433 | tensor_shape.unknown_shape(rank=3).as_proto().unknown_rank) |
| 434 | self.assertFalse( |
| 435 | tensor_shape.TensorShape([1, 2, 3]).as_proto().unknown_rank) |
| 436 | self.assertFalse( |
| 437 | tensor_shape.TensorShape([1, None, 3]).as_proto().unknown_rank) |
| 438 | |
| 439 | def testEquality(self): |
| 440 | s1 = tensor_shape.TensorShape([tensor_shape.Dimension( |
nothing calls this directly
no test coverage detected