diff options
author | 2018-09-06 15:45:48 -0700 | |
---|---|---|
committer | 2018-09-06 15:49:12 -0700 | |
commit | 654c4ce7b5a635dba9467c5021fbd2d9caefc195 (patch) | |
tree | d8af014e48448648490eb3ce23f21854dcfa31dd /tensorflow/core/kernels/data | |
parent | 5aca2604651e3532aa5304b6aabf51f630e62084 (diff) |
[tf.data] Fix in AutoTune prefetch buffer sizes.
PiperOrigin-RevId: 211883131
Diffstat (limited to 'tensorflow/core/kernels/data')
-rw-r--r-- | tensorflow/core/kernels/data/prefetch_dataset_op.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/core/kernels/data/prefetch_dataset_op.cc b/tensorflow/core/kernels/data/prefetch_dataset_op.cc index a7a2935195..baf448e572 100644 --- a/tensorflow/core/kernels/data/prefetch_dataset_op.cc +++ b/tensorflow/core/kernels/data/prefetch_dataset_op.cc @@ -209,6 +209,7 @@ class PrefetchDatasetOp::Dataset : public DatasetBase { if (s.ok()) { *out_tensors = std::move(buffer_.front().value); } + auto_tuner_.RecordConsumption(buffer_.size()); buffer_.pop_front(); *end_of_sequence = false; |