parameters: (rank=None, **kwargs)
docstring: Returns an unknown TensorShape, optionally with a known rank.
  
    Args:
      rank: (Optional) If specified, the number of dimensions in the shape.
      **kwargs: For backwards compatibility.
  
    Returns:
      An unknown TensorShape.
  
    Raises:
      TypeError: In case of invalid arguments.
docstring_summary: Returns an unknown TensorShape, optionally with a known rank.
docstring_tokens: Returns an unknown TensorShape optionally with a known rank .
function: def unknown_shape(rank=None, **kwargs):
    """Returns an unknown TensorShape, optionally with a known rank.
  
    Args:
      rank: (Optional) If specified, the number of dimensions in the shape.
      **kwargs: For backwards compatibility.
  
    Returns:
      An unknown TensorShape.
  
    Raises:
      TypeError: In case of invalid arguments.
    """
    if rank is None and "ndims" in kwargs:
      rank = kwargs.pop("ndims")
    if kwargs:
      raise TypeError("Unknown argument: %s" % kwargs)
    if rank is None:
      return TensorShape(None)
    else:
      return TensorShape([Dimension(None)] * rank)
function_tokens: def unknown_shape ( rank = None , * * kwargs ) : if rank is None and "ndims" in kwargs : rank = kwargs . pop ( "ndims" ) if kwargs : raise TypeError ( "Unknown argument: %s" % kwargs ) if rank is None : return TensorShape ( None ) else : return TensorShape ( [ Dimension ( None ) ] * rank )