parameters: (relaxed, to_check)
return_statement: return True
docstring: Checks if `relaxed` is less specific than `to_check`.
  
    This is an asymmetric check, unlike `TensorShape.is_compatible_with`. If
    `to_check` has a dimension with an undefined shape, `relaxed` must also have
    an undefined shape for that dimension.
  
    Args:
      relaxed: A `TensorShape` to check against.
      to_check: A second `TensorShape`.
  
    Returns:
      True if `to_check` represents a set of shapes which is a subset of
      `relaxed`'s shapes and False otherwise.
docstring_summary: Checks if `relaxed` is less specific than `to_check`.
docstring_tokens: Checks if relaxed is less specific than to_check .
function: def _shape_less_specific_than(relaxed, to_check):
    """Checks if `relaxed` is less specific than `to_check`.
  
    This is an asymmetric check, unlike `TensorShape.is_compatible_with`. If
    `to_check` has a dimension with an undefined shape, `relaxed` must also have
    an undefined shape for that dimension.
  
    Args:
      relaxed: A `TensorShape` to check against.
      to_check: A second `TensorShape`.
  
    Returns:
      True if `to_check` represents a set of shapes which is a subset of
      `relaxed`'s shapes and False otherwise.
    """
    if to_check.dims is not None and relaxed.dims is not None:
      if to_check.rank != relaxed.rank:
        return False
      for check_dim, relaxed_dim in zip(to_check.dims, relaxed.dims):
        if check_dim.value is None and relaxed_dim.value is not None:
          return False
        if not relaxed_dim.is_compatible_with(check_dim):
          return False
    return True
function_tokens: def _shape_less_specific_than ( relaxed , to_check ) : if to_check . dims is not None and relaxed . dims is not None : if to_check . rank != relaxed . rank : return False for check_dim , relaxed_dim in zip ( to_check . dims , relaxed . dims ) : if check_dim . value is None and relaxed_dim . value is not None : return False if not relaxed_dim . is_compatible_with ( check_dim ) : return False return True