W3cubDocs

/TensorFlow

tf.data.experimental.at

Returns the element at a specific index in a datasest.

Currently, random access is supported for the following tf.data operations:

Args
dataset A tf.data.Dataset to determine whether it supports random access.
index The index at which to fetch the element.
Returns
A (nested) structure of values matching tf.data.Dataset.element_spec.
Raises UnimplementedError: If random access is not yet supported for a dataset.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/data/experimental/at