Watch talks from the 2019 TensorFlow Dev Summit Watch now

tf.data.experimental.latency_stats

tf.data.experimental.latency_stats(tag)

Defined in tensorflow/python/data/experimental/ops/stats_ops.py.

Records the latency of producing each element of the input dataset.

To consume the statistics, associate a StatsAggregator with the output dataset.

Args:

  • tag: String. All statistics recorded by the returned transformation will be associated with the given tag.

Returns:

A Dataset transformation function, which can be passed to tf.data.Dataset.apply.