Ë
    BÆVhA  ã                   ój   — d Z ddlmZ ddlmZ  ej
                  dd«       ed«      dd„«       «       Zy)	z"Enumerate dataset transformations.é    )Údeprecation)Ú	tf_exportNz"Use `tf.data.Dataset.enumerate()`.z#data.experimental.enumerate_datasetc                 ó   ‡ — ˆ fd„}|S )a  A transformation that enumerates the elements of a dataset.

  It is similar to python's `enumerate`.
  For example:

  ```python
  # NOTE: The following examples use `{ ... }` to represent the
  # contents of a dataset.
  a = { 1, 2, 3 }
  b = { (7, 8), (9, 10) }

  # The nested structure of the `datasets` argument determines the
  # structure of elements in the resulting dataset.
  a.apply(tf.data.experimental.enumerate_dataset(start=5))
  => { (5, 1), (6, 2), (7, 3) }
  b.apply(tf.data.experimental.enumerate_dataset())
  => { (0, (7, 8)), (1, (9, 10)) }
  ```

  Args:
    start: A `tf.int64` scalar `tf.Tensor`, representing the start value for
      enumeration.

  Returns:
    A `Dataset` transformation function, which can be passed to
    `tf.data.Dataset.apply`.
  c                 ó&   •— | j                  ‰«      S )N)Ú	enumerate)ÚdatasetÚstarts    €úe/home/dcms/DCMS/lib/python3.12/site-packages/tensorflow/python/data/experimental/ops/enumerate_ops.pyÚ	_apply_fnz$enumerate_dataset.<locals>._apply_fn3   s   ø€ Ø×Ñ˜UÓ#Ð#ó    © )r	   r   s   ` r
   Úenumerate_datasetr      s   ø€ ô>$ð 
Ðr   )r   )Ú__doc__Útensorflow.python.utilr   Ú tensorflow.python.util.tf_exportr   Ú
deprecatedr   r   r   r
   ú<module>r      sC   ðñ )Ý .Ý 6ð €×Ñ˜ÐBÓCÙ
Ð0Ó1ò ó 2ó Dñ r   