parameters: (ts0, ts1)
docstring: Make sure the shape and dtype of the two tensor's lists are compatible.
  
    Args:
      ts0: an object convertible to a list of tf.Tensor.
      ts1: an object convertible to a list of tf.Tensor.
    Raises:
      ValueError: if any pair of tensors (same index in ts0 and ts1) have
        a dtype or a shape which is not compatible.
docstring_summary: Make sure the shape and dtype of the two tensor's lists are compatible.
docstring_tokens: Make sure the shape and dtype of the two tensor s lists are compatible .
function: def _check_ts_compatibility(ts0, ts1):
    """Make sure the shape and dtype of the two tensor's lists are compatible.
  
    Args:
      ts0: an object convertible to a list of tf.Tensor.
      ts1: an object convertible to a list of tf.Tensor.
    Raises:
      ValueError: if any pair of tensors (same index in ts0 and ts1) have
        a dtype or a shape which is not compatible.
    """
    ts0 = util.make_list_of_t(ts0)
    ts1 = util.make_list_of_t(ts1)
    if len(ts0) != len(ts1):
      raise ValueError("ts0 and ts1 have different sizes: {} != {}".format(
          len(ts0), len(ts1)))
    for t0, t1 in zip(ts0, ts1):
      # check dtype
      dtype0, dtype1 = t0.dtype, t1.dtype
      if not dtype0.is_compatible_with(dtype1):
        raise ValueError("Dtypes {} and {} are not compatible.".format(dtype0,
                                                                       dtype1))
      # check shape
      shape0, shape1 = t0.get_shape(), t1.get_shape()
      if not shape0.is_compatible_with(shape1):
        raise ValueError("Shapes {} and {} are not compatible.".format(shape0,
                                                                       shape1))
function_tokens: def _check_ts_compatibility ( ts0 , ts1 ) : ts0 = util . make_list_of_t ( ts0 ) ts1 = util . make_list_of_t ( ts1 ) if len ( ts0 ) != len ( ts1 ) : raise ValueError ( "ts0 and ts1 have different sizes: {} != {}" . format ( len ( ts0 ) , len ( ts1 ) ) ) for t0 , t1 in zip ( ts0 , ts1 ) : # check dtype dtype0 , dtype1 = t0 . dtype , t1 . dtype if not dtype0 . is_compatible_with ( dtype1 ) : raise ValueError ( "Dtypes {} and {} are not compatible." . format ( dtype0 , dtype1 ) ) # check shape shape0 , shape1 = t0 . get_shape ( ) , t1 . get_shape ( ) if not shape0 . is_compatible_with ( shape1 ) : raise ValueError ( "Shapes {} and {} are not compatible." . format ( shape0 , shape1 ) )