From 80aef42ef52ba1ee79627d6f663a624ec4f12f58 Mon Sep 17 00:00:00 2001 From: sneaxiy Date: Wed, 26 Feb 2020 02:30:49 +0000 Subject: [PATCH] test commit for reverting --- paddle/fluid/operators/reader/lod_tensor_blocking_queue.h | 4 +++- python/paddle/fluid/reader.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/paddle/fluid/operators/reader/lod_tensor_blocking_queue.h b/paddle/fluid/operators/reader/lod_tensor_blocking_queue.h index 17778148f82..19f564946f9 100644 --- a/paddle/fluid/operators/reader/lod_tensor_blocking_queue.h +++ b/paddle/fluid/operators/reader/lod_tensor_blocking_queue.h @@ -74,7 +74,9 @@ class OrderedMultiDeviceLoDTensorBlockingQueue { public: OrderedMultiDeviceLoDTensorBlockingQueue(size_t capacity, bool speed_test_mode = false) - : capacity_(capacity), speed_test_mode_(speed_test_mode) {} + : capacity_(capacity), speed_test_mode_(speed_test_mode) { + LOG(INFO) << "Use keep_order=True DataLoader"; + } ~OrderedMultiDeviceLoDTensorBlockingQueue() { VLOG(10) << "Destruct OrderedMultiDeviceLoDTensorBlockingQueue"; diff --git a/python/paddle/fluid/reader.py b/python/paddle/fluid/reader.py index 67e6259e812..ed6ac17e1b1 100644 --- a/python/paddle/fluid/reader.py +++ b/python/paddle/fluid/reader.py @@ -89,7 +89,7 @@ class DataLoader(object): return_list=False, use_multiprocess=False, drop_last=True, - keep_order=True): + keep_order=False): """ Create a DataLoader object for loading data from Python generator. Data would be prefetched using Python thread and be pushed @@ -633,7 +633,7 @@ class GeneratorLoader(DataLoaderBase): iterable=True, return_list=False, drop_last=True, - keep_order=True): + keep_order=False): self._tensor_reader = None self._places = None self._thread = None -- GitLab