MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _ShapeLessThanOrEqual

Function _ShapeLessThanOrEqual

tensorflow/python/ops/control_flow_ops.py:449–457  ·  view source on GitHub ↗
(shape1, shape2)

Source from the content-addressed store, hash-verified

447
448
449def _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
460def _get_shape_invariant(var, shape=None):

Callers 2

_SetShapeInvariantsFunction · 0.85
_EnforceShapeInvariantFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected