
    BVh                     h    d Z ddlmZ ddlmZ  ej
                  dd       ed      d               Zy)z'Unique element dataset transformations.    )deprecation)	tf_exportNz Use `tf.data.Dataset.unique(...)zdata.experimental.uniquec                      d } | S )a
  Creates a `Dataset` from another `Dataset`, discarding duplicates.

  Use this transformation to produce a dataset that contains one instance of
  each unique element in the input. For example:

  ```python
  dataset = tf.data.Dataset.from_tensor_slices([1, 37, 2, 37, 2, 1])

  # Using `unique()` will drop the duplicate elements.
  dataset = dataset.apply(tf.data.experimental.unique())  # ==> { 1, 37, 2 }
  ```

  Returns:
    A `Dataset` transformation function, which can be passed to
    `tf.data.Dataset.apply`.
  c                 "    | j                         S )N)unique)datasets    ^/home/dcms/DCMS/lib/python3.12/site-packages/tensorflow/python/data/experimental/ops/unique.py	_apply_fnzunique.<locals>._apply_fn(   s    >>     )r
   s    r	   r   r      s    ( 
r   )__doc__tensorflow.python.utilr    tensorflow.python.util.tf_exportr   
deprecatedr   r   r   r	   <module>r      sC    . . 6 @A
%& ' Br   