On this page
tf.data.experimental.StatsOptions
Represents options for collecting dataset stats using StatsAggregator.
tf.data.experimental.StatsOptions()
You can set the stats options of a dataset through the experimental_stats property of tf.data.Options; the property is an instance of tf.data.experimental.StatsOptions. For example, to collect latency stats on all dataset edges, use the following pattern:
aggregator = tf.data.experimental.StatsAggregator()
options = tf.data.Options()
options.experimental_stats.aggregator = aggregator
options.experimental_stats.latency_all_edges = True
dataset = dataset.with_options(options)
| Attributes | |
|---|---|
| aggregator | Associates the given statistics aggregator with the dataset pipeline. | 
| counter_prefix | Prefix for the statistics recorded as counter. | 
| latency_all_edges | Whether to add latency measurements on all edges. Defaults to False. | 
| prefix | Prefix to prepend all statistics recorded for the input datasetwith. | 
Methods
__eq__
  
  __eq__(
    other
)
Return self==value.
__ne__
  
  __ne__(
    other
)
Return self!=value.
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
 https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/data/experimental/StatsOptions