parameters: (self)
return_statement: return [dim.value for dim in self._dims]
docstring: Returns a list of integers or `None` for each dimension.
  
      Returns:
        A list of integers or `None` for each dimension.
  
      Raises:
        ValueError: If `self` is an unknown shape with an unknown rank.
docstring_summary: Returns a list of integers or `None` for each dimension.
docstring_tokens: Returns a list of integers or None for each dimension .
function: def as_list(self):
      """Returns a list of integers or `None` for each dimension.
  
      Returns:
        A list of integers or `None` for each dimension.
  
      Raises:
        ValueError: If `self` is an unknown shape with an unknown rank.
      """
      if self._dims is None:
        raise ValueError("as_list() is not defined on an unknown TensorShape.")
      return [dim.value for dim in self._dims]
function_tokens: def as_list ( self ) : if self . _dims is None : raise ValueError ( "as_list() is not defined on an unknown TensorShape." ) return [ dim . value for dim in self . _dims ]