parameters: (self, other)
return_statement: return self._dims != other.dims
docstring: Returns True if `self` is known to be different from `other`.
docstring_summary: Returns True if `self` is known to be different from `other`.
docstring_tokens: Returns True if self is known to be different from other .
function: def __ne__(self, other):
      """Returns True if `self` is known to be different from `other`."""
      try:
        other = as_shape(other)
      except TypeError:
        return NotImplemented
      if self.ndims is None or other.ndims is None:
        raise ValueError("The inequality of unknown TensorShapes is undefined.")
      if self.ndims != other.ndims:
        return True
      return self._dims != other.dims
function_tokens: def __ne__ ( self , other ) : try : other = as_shape ( other ) except TypeError : return NotImplemented if self . ndims is None or other . ndims is None : raise ValueError ( "The inequality of unknown TensorShapes is undefined." ) if self . ndims != other . ndims : return True return self . _dims != other . dims