(shape1, shape2)
| 447 | |
| 448 | |
| 449 | def _ShapeLessThanOrEqual(shape1, shape2): |
| 450 | if shape2.dims is None: |
| 451 | return True |
| 452 | if shape1.ndims != shape2.ndims: |
| 453 | return False |
| 454 | for dim1, dim2 in zip(shape1.dims, shape2.dims): |
| 455 | if dim2.value is not None and dim1.value != dim2.value: |
| 456 | return False |
| 457 | return True |
| 458 | |
| 459 | |
| 460 | def _get_shape_invariant(var, shape=None): |
no outgoing calls
no test coverage detected