Missed TensorFlow World? Check out the recap. Learn more

tf.data.experimental.latency_stats

TensorFlow 2.0 version View source on GitHub

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

Aliases:

  • tf.compat.v1.data.experimental.latency_stats
  • tf.compat.v2.data.experimental.latency_stats
tf.data.experimental.latency_stats(tag)

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.