Typo correction, no method `set_stats_aggregator_op(..)` to associate `StatsAggregato...
authorShivani Agrawal <shivaniagrawal@google.com>
Wed, 7 Mar 2018 06:53:43 +0000 (22:53 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 7 Mar 2018 06:57:47 +0000 (22:57 -0800)
PiperOrigin-RevId: 188132675

tensorflow/contrib/data/python/ops/stats_ops.py

index 9cd1701..b5cf0fc 100644 (file)
@@ -47,7 +47,7 @@ class StatsAggregator(object):
   dataset = ...
   iterator = dataset.make_one_shot_iterator()
   stats_aggregator = stats_ops.StatsAggregator()
-  set_op = stats_op.set_stats_aggregator_op(iterator, stats_aggregator)
+  set_op = stats_aggregator.subscribe(iterator)
 
   with tf.Session() as sess:
     # Running `set_op` will associate `iterator` with `stats_aggregator`.