()
| 89 | |
| 90 | |
| 91 | def test_same_input_shapes(): |
| 92 | # Check that the final shape is just the input shape. |
| 93 | |
| 94 | data = [ |
| 95 | (), |
| 96 | (1,), |
| 97 | (3,), |
| 98 | (0, 1), |
| 99 | (0, 3), |
| 100 | (1, 0), |
| 101 | (3, 0), |
| 102 | (1, 3), |
| 103 | (3, 1), |
| 104 | (3, 3), |
| 105 | ] |
| 106 | for shape in data: |
| 107 | input_shapes = [shape] |
| 108 | # Single input. |
| 109 | assert_shapes_correct(input_shapes, shape) |
| 110 | # Double input. |
| 111 | input_shapes2 = [shape, shape] |
| 112 | assert_shapes_correct(input_shapes2, shape) |
| 113 | # Triple input. |
| 114 | input_shapes3 = [shape, shape, shape] |
| 115 | assert_shapes_correct(input_shapes3, shape) |
| 116 | |
| 117 | |
| 118 | def test_two_compatible_by_ones_input_shapes(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…