message: setdiff1d TF2
diff: @@ -1622,15 +1622,17 @@ def unique(x, out_idx=dtypes.int32, name=None):
  y[idx[i]] = x[i] for i in [0, 1,...,rank(x) - 1]
  - #### EXAMPLE:
  + Example usage:
  +
  + >>> x = constant([1, 1, 2, 4, 4, 4, 7, 8, 8])
  + >>> y, idx = unique(x)
  + >>> y
  + <tf.Tensor: id=8, shape=(5,), dtype=int32, numpy=
  + ... array([1, 2, 4, 7, 8], dtype=int32)>
  + >>> idx
  + <tf.Tensor: id=9, shape=(9,), dtype=int32, numpy=
  + ... array([0, 0, 1, 2, 2, 2, 3, 4, 4], dtype=int32)>
  - >>> x = tf.constant([1, 1, 2, 4, 4, 4, 7, 8, 8])
  - >>> y, idx = tf.unique(x)
  - >>> sess=tf.compat.v1.Session()
  - >>> print(sess.run(y))
  - [1, 2, 4, 7, 8]
  - >>> print(sess.run(idx))
  - [0, 0, 1, 2, 2, 2, 3, 4, 4]
  Args:
  x: A Tensor. 1-D.
  @@ -1665,16 +1667,15 @@ def unique_with_counts(x, out_idx=dtypes.int32, name=None):
  y[idx[i]] = x[i] for i in [0, 1,...,rank(x) - 1]
  - #### EXAMPLE:
  + Example usage:
  >>> x = tf.constant([1, 1, 2, 4, 4, 4, 7, 8, 8])
  >>> y, idx, count = tf.unique_with_counts(x)
  - >>> sess=tf.compat.v1.Session()
  - >>> print(sess.run(y))
  - [1, 2, 4, 7, 8]
  - >>> print(sess.run(idx))
  + >>> print(y)
  + [1 2 4 7 8]
  + >>> tf.print(idx)
  [0, 0, 1, 2, 2, 2, 3, 4, 4]
  - >>> print(sess.run(count))
  + >>> tf.print(count)
  [2, 1, 3, 1, 2]
  Args:
  