class_docstr: Describes a tf.Tensor.
  
  Metadata for describing the `tf.Tensor` objects accepted or returned
  by some TensorFlow APIs.
docstr: Returns True if spec_or_tensor is compatible with this TensorSpec.
  
  Two tensors are considered compatible if they have the same dtype
  and their shapes are compatible (see `tf.TensorShape.is_compatible_with`).
  
  Args:
    spec_or_tensor: A tf.TensorSpec or a tf.Tensor
  
  Returns:
    True if spec_or_tensor is compatible with self.
docstr_tok: ["Returns","True","if","spec_or_tensor","is","compatible","with","this","TensorSpec",".","Two","tensors","are","considered","compatible","if","they","have","the","same","dtype","and","their","shapes","are","compatible","(","see","`","tf.TensorShape.is_compatible_with","`",")",".","Args",":","spec_or_tensor",":","A","tf.TensorSpec","or","a","tf.Tensor","Returns",":","True","if","spec_or_tensor","is","compatible","with","self","."]
code: def is_compatible_with(self, spec_or_tensor):
      """Returns True if spec_or_tensor is compatible with this TensorSpec.
  
      Two tensors are considered compatible if they have the same dtype
      and their shapes are compatible (see `tf.TensorShape.is_compatible_with`).
  
      Args:
        spec_or_tensor: A tf.TensorSpec or a tf.Tensor
  
      Returns:
        True if spec_or_tensor is compatible with self.
      """
      return self._dtype.is_compatible_with(
          spec_or_tensor.dtype
      ) and self._shape.is_compatible_with(spec_or_tensor.shape)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tensorflow.python.framework import common_shapes
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
label_desc: Use image node_id 7 for calling the TensorSpec obj's underlying member method code with example usage: obj.is_compatible_with(spec_or_tensor) and returns: unknown