From e38e718a08182ccda45905ed390ef7f7bf1b2e0d Mon Sep 17 00:00:00 2001 From: Jay Shi Date: Wed, 23 Sep 2020 09:49:17 -0700 Subject: [PATCH] [tf.data] Add the `kBufferSizeMin` to .cc file to solve some bug. PiperOrigin-RevId: 333311804 Change-Id: I8b9c6e13c8c40612ab4c08760920ef59a92ce15a --- tensorflow/core/kernels/data/prefetch_dataset_op.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/tensorflow/core/kernels/data/prefetch_dataset_op.cc b/tensorflow/core/kernels/data/prefetch_dataset_op.cc index 7d22272e977..792de71f98c 100644 --- a/tensorflow/core/kernels/data/prefetch_dataset_op.cc +++ b/tensorflow/core/kernels/data/prefetch_dataset_op.cc @@ -45,6 +45,7 @@ namespace data { /* static */ constexpr const char* const PrefetchDatasetOp::kOutputShapes; /* static */ constexpr const char* const PrefetchDatasetOp::kSlackPeriod; /* static */ constexpr const char* const PrefetchDatasetOp::kLegacyAutotune; +/* static */ constexpr const char* const PrefetchDatasetOp::kBufferSizeMin; // Determines the fraction of slack time by which to delay prefetching of data. constexpr double kSleepFactor = 0.2;